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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SplicePriceStrategyStatic | contracts/Splice.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | Splice | contract Splice is
ERC721Upgradeable,
OwnableUpgradeable,
PausableUpgradeable,
ReentrancyGuardUpgradeable,
IERC2981Upgradeable
{
using SafeMathUpgradeable for uint256;
using StringsUpgradeable for uint32;
/// @notice you didn't send sufficient fees along
error InsufficientFees();
/// @notice The c... | /// @title Splice is a protocol to mint NFTs out of origin NFTs
/// @author Stefan Adolf @elmariachi111 | NatSpecSingleLine | setPlatformBeneficiary | function setPlatformBeneficiary(address payable newAddress)
external
onlyOwner
{
require(address(0) != newAddress, 'must be a real address');
platformBeneficiary = newAddress;
emit BeneficiaryChanged(newAddress);
}
| //todo: the platform benef. should be the only one to name a new beneficiary, not the owner. | LineComment | v0.8.10+commit.fc410830 | {
"func_code_index": [
2151,
2391
]
} | 56,561 | ||
SplicePriceStrategyStatic | contracts/Splice.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | Splice | contract Splice is
ERC721Upgradeable,
OwnableUpgradeable,
PausableUpgradeable,
ReentrancyGuardUpgradeable,
IERC2981Upgradeable
{
using SafeMathUpgradeable for uint256;
using StringsUpgradeable for uint32;
/// @notice you didn't send sufficient fees along
error InsufficientFees();
/// @notice The c... | /// @title Splice is a protocol to mint NFTs out of origin NFTs
/// @author Stefan Adolf @elmariachi111 | NatSpecSingleLine | withdrawEth | function withdrawEth() external nonReentrant onlyOwner {
AddressUpgradeable.sendValue(
payable(platformBeneficiary),
address(this).balance
);
}
| /**
* in case anything drops ETH/ERC20/ERC721 on us accidentally,
* this will help us withdraw it.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
2784,
2951
]
} | 56,562 | ||
SplicePriceStrategyStatic | contracts/Splice.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | Splice | contract Splice is
ERC721Upgradeable,
OwnableUpgradeable,
PausableUpgradeable,
ReentrancyGuardUpgradeable,
IERC2981Upgradeable
{
using SafeMathUpgradeable for uint256;
using StringsUpgradeable for uint32;
/// @notice you didn't send sufficient fees along
error InsufficientFees();
/// @notice The c... | /// @title Splice is a protocol to mint NFTs out of origin NFTs
/// @author Stefan Adolf @elmariachi111 | NatSpecSingleLine | contractURI | function contractURI() public pure returns (string memory) {
return 'https://getsplice.io/contract-metadata';
}
| // for OpenSea | LineComment | v0.8.10+commit.fc410830 | {
"func_code_index": [
3696,
3815
]
} | 56,563 | ||
SplicePriceStrategyStatic | contracts/Splice.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | Splice | contract Splice is
ERC721Upgradeable,
OwnableUpgradeable,
PausableUpgradeable,
ReentrancyGuardUpgradeable,
IERC2981Upgradeable
{
using SafeMathUpgradeable for uint256;
using StringsUpgradeable for uint32;
/// @notice you didn't send sufficient fees along
error InsufficientFees();
/// @notice The c... | /// @title Splice is a protocol to mint NFTs out of origin NFTs
/// @author Stefan Adolf @elmariachi111 | NatSpecSingleLine | updateRoyalties | function updateRoyalties(uint8 royaltyPercentage) external onlyOwner {
require(royaltyPercentage <= 10, 'royalties must never exceed 10%');
ROYALTY_PERCENT = royaltyPercentage;
emit RoyaltiesUpdated(royaltyPercentage);
}
| /**
* @notice this will only have an effect for new styles
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
4771,
5007
]
} | 56,564 | ||
SplicePriceStrategyStatic | contracts/Splice.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | Splice | contract Splice is
ERC721Upgradeable,
OwnableUpgradeable,
PausableUpgradeable,
ReentrancyGuardUpgradeable,
IERC2981Upgradeable
{
using SafeMathUpgradeable for uint256;
using StringsUpgradeable for uint32;
/// @notice you didn't send sufficient fees along
error InsufficientFees();
/// @notice The c... | /// @title Splice is a protocol to mint NFTs out of origin NFTs
/// @author Stefan Adolf @elmariachi111 | NatSpecSingleLine | royaltyInfo | function royaltyInfo(uint256 tokenId, uint256 salePrice)
public
view
returns (address receiver, uint256 royaltyAmount)
{
(uint32 styleTokenId, ) = styleAndTokenByTokenId(tokenId);
receiver = styleNFT.getSettings(styleTokenId).paymentSplitter;
royaltyAmount = (ROYALTY_PERCENT * salePrice).div(100);
}
| /**
* potentially (hopefully) called by marketplaces to find a target address where to send royalties
* @notice the returned address will be a payment splitting instance
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
5386,
5716
]
} | 56,565 | ||
SplicePriceStrategyStatic | contracts/PaymentSplitterController.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | PaymentSplitterController | contract PaymentSplitterController is
Initializable,
ReentrancyGuardUpgradeable
{
/**
* @dev each style tokens' payment splitter instance
*/
mapping(uint256 => ReplaceablePaymentSplitter) public splitters;
address[] private PAYMENT_TOKENS;
/**
* @dev the base instance that minimal proxies are clo... | withdrawAll | function withdrawAll(address payable payee, address[] memory splitters_)
external
nonReentrant
{
for (uint256 i = 0; i < splitters_.length; i++) {
releaseAll(ReplaceablePaymentSplitter(payable(splitters_[i])), payee);
}
}
| /**
* @notice when splitters_ is [], we try to get *all* of your funds out
* to withdraw individual tokens or in case some external call fails,
* one can still call the payment splitter's release methods directly.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
1707,
1956
]
} | 56,566 | ||||
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
... | // ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
94,
154
]
} | 56,567 |
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public view override returns (uint) {
return _totalSupply;
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
937,
1039
]
} | 56,568 |
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public view override returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
1259,
1393
]
} | 56,569 |
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public override returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
1737,
2023
]
} | 56,570 |
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public virtual override returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
2531,
2756
]
} | 56,571 |
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public virtual override returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tok... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
3285,
3660
]
} | 56,572 |
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public view virtual override returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
3943,
4113
]
} | 56,573 |
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes memory data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, address(this), data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
4468,
4801
]
} | 56,574 |
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
4993,
5053
]
} | 56,575 | ||
BXB | BXB.sol | 0x1bf4e14bbb74dd4f31e740b521203f1e0eeb21f3 | Solidity | BXB | contract BXB is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// -----------------------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return IERC20(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.8.3+commit.8d00100c | MIT | ipfs://cdd8b84e43247731fef454781ba07d9c7b2f0af4c06441f256dd3d19c525da15 | {
"func_code_index": [
5286,
5467
]
} | 56,576 |
GiftCrowdsale | contracts/BurnableToken.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | BurnableToken | contract BurnableToken is StandardToken, Ownable {
event Burn(address indexed burner, uint256 amount);
/**
* @dev Anybody can burn a specific amount of their tokens.
* @param _amount The amount of token to be burned.
*/
function burn(uint256 _amount) public {
burnInternal(msg.... | /**
* @title Customized Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burn | function burn(uint256 _amount) public {
burnInternal(msg.sender, _amount);
}
| /**
* @dev Anybody can burn a specific amount of their tokens.
* @param _amount The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
250,
345
]
} | 56,577 | |
GiftCrowdsale | contracts/BurnableToken.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | BurnableToken | contract BurnableToken is StandardToken, Ownable {
event Burn(address indexed burner, uint256 amount);
/**
* @dev Anybody can burn a specific amount of their tokens.
* @param _amount The amount of token to be burned.
*/
function burn(uint256 _amount) public {
burnInternal(msg.... | /**
* @title Customized Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burnFrom | function burnFrom(address _from, uint256 _amount) public onlyOwner {
burnInternal(_from, _amount);
}
| /**
* @dev Owner can burn a specific amount of tokens of other token holders.
* @param _from The address of token holder whose tokens to be burned.
* @param _amount The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
575,
694
]
} | 56,578 | |
GiftCrowdsale | contracts/BurnableToken.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | BurnableToken | contract BurnableToken is StandardToken, Ownable {
event Burn(address indexed burner, uint256 amount);
/**
* @dev Anybody can burn a specific amount of their tokens.
* @param _amount The amount of token to be burned.
*/
function burn(uint256 _amount) public {
burnInternal(msg.... | /**
* @title Customized Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
*/ | NatSpecMultiLine | burnInternal | function burnInternal(address _from, uint256 _amount) internal {
require(_from != address(0));
require(_amount > 0);
require(_amount <= balances[_from]);
// no need to require _amount <= totalSupply, since that would imply the
// sender's balance is greater than the totalSupply, which *should* ... | /**
* @dev Burns a specific amount of tokens of a token holder.
* @param _from The address of token holder whose tokens are to be burned.
* @param _amount The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
914,
1477
]
} | 56,579 | |
GiftCrowdsale | contracts/GiftToken.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftToken | contract GiftToken is BurnableToken, Pausable {
string public name = "Giftcoin";
string public symbol = "GIFT";
uint8 public decimals = 18;
uint256 public initialTotalSupply = uint256(1e8) * (uint256(10) ** decimals);
address private addressIco;
modifier onlyIco() {
requ... | GiftToken | function GiftToken(address _ico) public {
pause();
setIcoAddress(_ico);
totalSupply_ = initialTotalSupply;
balances[_ico] = balances[_ico].add(initialTotalSupply);
Transfer(address(0), _ico, initialTotalSupply);
}
| /**
* @dev Create GiftToken contract and set pause
* @param _ico The address of ICO contract.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
490,
760
]
} | 56,580 | |||
GiftCrowdsale | contracts/GiftToken.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftToken | contract GiftToken is BurnableToken, Pausable {
string public name = "Giftcoin";
string public symbol = "GIFT";
uint8 public decimals = 18;
uint256 public initialTotalSupply = uint256(1e8) * (uint256(10) ** decimals);
address private addressIco;
modifier onlyIco() {
requ... | transfer | function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {
return super.transfer(_to, _value);
}
| /**
* @dev Transfer token for a specified address with pause feature for owner.
* @dev Only applies when the transfer is allowed by the owner.
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
1539,
1680
]
} | 56,581 | |||
GiftCrowdsale | contracts/GiftToken.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftToken | contract GiftToken is BurnableToken, Pausable {
string public name = "Giftcoin";
string public symbol = "GIFT";
uint8 public decimals = 18;
uint256 public initialTotalSupply = uint256(1e8) * (uint256(10) ** decimals);
address private addressIco;
modifier onlyIco() {
requ... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) {
return super.transferFrom(_from, _to, _value);
}
| /**
* @dev Transfer tokens from one address to another with pause feature for owner.
* @dev Only applies when the transfer is allowed by the owner.
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the a... | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
2065,
2236
]
} | 56,582 | |||
GiftCrowdsale | contracts/GiftToken.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftToken | contract GiftToken is BurnableToken, Pausable {
string public name = "Giftcoin";
string public symbol = "GIFT";
uint8 public decimals = 18;
uint256 public initialTotalSupply = uint256(1e8) * (uint256(10) ** decimals);
address private addressIco;
modifier onlyIco() {
requ... | transferFromIco | function transferFromIco(address _to, uint256 _value) public onlyIco returns (bool) {
return super.transfer(_to, _value);
}
| /**
* @dev Transfer tokens from ICO address to another address.
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
2418,
2560
]
} | 56,583 | |||
GiftCrowdsale | contracts/Whitelist.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | Whitelist | contract Whitelist is Ownable {
struct WalletInfo {
string data;
bool whitelisted;
uint256 createdTimestamp;
}
address public backendAddress;
mapping(address => WalletInfo) public whitelist;
uint256 public whitelistLength = 0;
/**
* @dev Sets the bac... | /**
* @title Whitelist contract
* @dev Whitelist for wallets, with additional data for every wallet.
*/ | NatSpecMultiLine | setBackendAddress | function setBackendAddress(address _backendAddress) public onlyOwner {
require(_backendAddress != address(0));
backendAddress = _backendAddress;
}
| /**
* @dev Sets the backend address for automated operations.
* @param _backendAddress The backend address to allow.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
428,
602
]
} | 56,584 | |
GiftCrowdsale | contracts/Whitelist.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | Whitelist | contract Whitelist is Ownable {
struct WalletInfo {
string data;
bool whitelisted;
uint256 createdTimestamp;
}
address public backendAddress;
mapping(address => WalletInfo) public whitelist;
uint256 public whitelistLength = 0;
/**
* @dev Sets the bac... | /**
* @title Whitelist contract
* @dev Whitelist for wallets, with additional data for every wallet.
*/ | NatSpecMultiLine | addWallet | function addWallet(address _wallet, string _data) public onlyPrivilegedAddresses {
require(_wallet != address(0));
require(!isWhitelisted(_wallet));
whitelist[_wallet].data = _data;
whitelist[_wallet].whitelisted = true;
whitelist[_wallet].createdTimestamp = now;
whitelistLength++;
}
| /**
* @dev Add wallet to whitelist.
* @dev Accept request from privilege adresses only.
* @param _wallet The address of wallet to add.
* @param _data The checksum of additional wallet data.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
1057,
1405
]
} | 56,585 | |
GiftCrowdsale | contracts/Whitelist.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | Whitelist | contract Whitelist is Ownable {
struct WalletInfo {
string data;
bool whitelisted;
uint256 createdTimestamp;
}
address public backendAddress;
mapping(address => WalletInfo) public whitelist;
uint256 public whitelistLength = 0;
/**
* @dev Sets the bac... | /**
* @title Whitelist contract
* @dev Whitelist for wallets, with additional data for every wallet.
*/ | NatSpecMultiLine | updateWallet | function updateWallet(address _wallet, string _data) public onlyPrivilegedAddresses {
require(_wallet != address(0));
require(isWhitelisted(_wallet));
whitelist[_wallet].data = _data;
}
| /**
* @dev Update additional data for whitelisted wallet.
* @dev Accept request from privilege adresses only.
* @param _wallet The address of whitelisted wallet to update.
* @param _data The checksum of new additional wallet data.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
1678,
1900
]
} | 56,586 | |
GiftCrowdsale | contracts/Whitelist.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | Whitelist | contract Whitelist is Ownable {
struct WalletInfo {
string data;
bool whitelisted;
uint256 createdTimestamp;
}
address public backendAddress;
mapping(address => WalletInfo) public whitelist;
uint256 public whitelistLength = 0;
/**
* @dev Sets the bac... | /**
* @title Whitelist contract
* @dev Whitelist for wallets, with additional data for every wallet.
*/ | NatSpecMultiLine | removeWallet | function removeWallet(address _wallet) public onlyPrivilegedAddresses {
require(_wallet != address(0));
require(isWhitelisted(_wallet));
delete whitelist[_wallet];
whitelistLength--;
}
| /**
* @dev Remove wallet from whitelist.
* @dev Accept request from privilege adresses only.
* @param _wallet The address of whitelisted wallet to remove.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
2088,
2318
]
} | 56,587 | |
GiftCrowdsale | contracts/Whitelist.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | Whitelist | contract Whitelist is Ownable {
struct WalletInfo {
string data;
bool whitelisted;
uint256 createdTimestamp;
}
address public backendAddress;
mapping(address => WalletInfo) public whitelist;
uint256 public whitelistLength = 0;
/**
* @dev Sets the bac... | /**
* @title Whitelist contract
* @dev Whitelist for wallets, with additional data for every wallet.
*/ | NatSpecMultiLine | isWhitelisted | function isWhitelisted(address _wallet) public view returns (bool) {
return whitelist[_wallet].whitelisted;
}
| /**
* @dev Check the specified wallet whether it is in the whitelist.
* @param _wallet The address of wallet to check.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
2464,
2592
]
} | 56,588 | |
GiftCrowdsale | contracts/Whitelist.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | Whitelist | contract Whitelist is Ownable {
struct WalletInfo {
string data;
bool whitelisted;
uint256 createdTimestamp;
}
address public backendAddress;
mapping(address => WalletInfo) public whitelist;
uint256 public whitelistLength = 0;
/**
* @dev Sets the bac... | /**
* @title Whitelist contract
* @dev Whitelist for wallets, with additional data for every wallet.
*/ | NatSpecMultiLine | walletData | function walletData(address _wallet) public view returns (string) {
return whitelist[_wallet].data;
}
| /**
* @dev Get the checksum of additional data for the specified whitelisted wallet.
* @param _wallet The address of wallet to get.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
2751,
2871
]
} | 56,589 | |
GiftCrowdsale | contracts/Whitelist.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | Whitelist | contract Whitelist is Ownable {
struct WalletInfo {
string data;
bool whitelisted;
uint256 createdTimestamp;
}
address public backendAddress;
mapping(address => WalletInfo) public whitelist;
uint256 public whitelistLength = 0;
/**
* @dev Sets the bac... | /**
* @title Whitelist contract
* @dev Whitelist for wallets, with additional data for every wallet.
*/ | NatSpecMultiLine | walletCreatedTimestamp | function walletCreatedTimestamp(address _wallet) public view returns (uint256) {
return whitelist[_wallet].createdTimestamp;
}
| /**
* @dev Get the creation timestamp for the specified whitelisted wallet.
* @param _wallet The address of wallet to get.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
3020,
3165
]
} | 56,590 | |
SeekerCoin | SeekerCoin.sol | 0xe3b7176a221919a2331c4b529b4d39fce04cfb75 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://78d5474f0d32328c623d5d768843c649324d633a3fd4bef4299824d5947229b3 | {
"func_code_index": [
261,
321
]
} | 56,591 | |
SeekerCoin | SeekerCoin.sol | 0xe3b7176a221919a2331c4b529b4d39fce04cfb75 | Solidity | Ownable | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.18+commit.9cf6e910 | bzzr://78d5474f0d32328c623d5d768843c649324d633a3fd4bef4299824d5947229b3 | {
"func_code_index": [
644,
820
]
} | 56,592 | |
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | totalShares | function totalShares() public view returns (uint256) {
return _totalShares;
}
| /**
* @dev Getter for the total shares held by payees.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
1526,
1611
]
} | 56,593 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | totalReleased | function totalReleased() public view returns (uint256) {
return _totalReleased;
}
| /**
* @dev Getter for the total amount of Ether already released.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
1690,
1779
]
} | 56,594 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | totalReleased | function totalReleased(IERC20 token) public view returns (uint256) {
return _erc20TotalReleased[token];
}
| /**
* @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
* contract.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
1918,
2031
]
} | 56,595 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | shares | function shares(address account) public view returns (uint256) {
return _shares[account];
}
| /**
* @dev Getter for the amount of shares held by an account.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
2107,
2206
]
} | 56,596 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | released | function released(address account) public view returns (uint256) {
return _released[account];
}
| /**
* @dev Getter for the amount of Ether already released to a payee.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
2290,
2393
]
} | 56,597 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | released | function released(IERC20 token, address account)
public
view
returns (uint256)
{
return _erc20Released[token][account];
}
| /**
* @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
* IERC20 contract.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
2544,
2687
]
} | 56,598 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | payee | function payee(uint256 index) public view returns (address) {
return _payees[index];
}
| /**
* @dev Getter for the address of the payee number `index`.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
2763,
2857
]
} | 56,599 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | release | function release(address payable account) external virtual {
require(_shares[account] > 0, 'PaymentSplitter: account has no shares');
uint256 totalReceived = address(this).balance + totalReleased();
uint256 payment = _pendingPayment(
account,
totalReceived,
released(account)
);
require(payment !... | /**
* @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
* total shares and their previous withdrawals.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
3039,
3597
]
} | 56,600 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | release | function release(IERC20 token, address account) external virtual {
require(_shares[account] > 0, 'PaymentSplitter: account has no shares');
uint256 totalReceived = token.balanceOf(address(this)) +
totalReleased(token);
uint256 payment = _pendingPayment(
account,
totalReceived,
released(token, acc... | /**
* @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
* percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
* contract.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
3844,
4472
]
} | 56,601 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | _pendingPayment | function _pendingPayment(
address account,
uint256 totalReceived,
uint256 alreadyReleased
) private view returns (uint256) {
return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
}
| /**
* @dev internal logic for computing the pending payment of an `account` given the token historical balances and
* already released amounts.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
4632,
4856
]
} | 56,602 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | _addPayee | function _addPayee(address account, uint256 shares_) private {
require(
account != address(0),
'PaymentSplitter: account is the zero address'
);
require(shares_ > 0, 'PaymentSplitter: shares are 0');
require(
_shares[account] == 0,
'PaymentSplitter: account already has shares'
);
_payees.pu... | /**
* @dev Add a new payee to the contract.
* @param account The address of the payee to add.
* @param shares_ The number of shares owned by the payee.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
5027,
5456
]
} | 56,603 | ||
SplicePriceStrategyStatic | contracts/ReplaceablePaymentSplitter.sol | 0xee25f9e9f3fe1015e1f695ab50bca299aaf4dcf1 | Solidity | ReplaceablePaymentSplitter | contract ReplaceablePaymentSplitter is Context, Initializable {
event PayeeAdded(address indexed account, uint256 shares);
event PayeeReplaced(
address indexed old,
address indexed new_,
uint256 shares
);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed ... | /**
* @notice this is an initializeable OZ PaymentSplitter with an additional replace function to
* update the payees when the owner of the underlying royalty bearing asset has
* changed. Cannot extend PaymentSplitter because its members are private.
*/ | NatSpecMultiLine | replacePayee | function replacePayee(address old, address new_) external onlyController {
uint256 oldShares = _shares[old];
require(oldShares > 0, 'PaymentSplitter: old account has no shares');
require(
new_ != address(0),
'PaymentSplitter: new account is the zero address'
);
require(
_shares[new_] == 0,
'Pa... | /**
* @dev the new_ payee will receive splits at the same rate as _old did before.
* all pending payouts of _old can be withdrawn by _new.
*/ | NatSpecMultiLine | v0.8.10+commit.fc410830 | {
"func_code_index": [
5616,
6328
]
} | 56,604 | ||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | GiftCrowdsale | function GiftCrowdsale (
uint256 _startTimestamp,
uint256 _endTimestamp,
uint256 _exchangeRate,
uint256 _minCap
)
public
{
require(_startTimestamp >= now && _endTimestamp > _startTimestamp);
require(_exchangeRate > 0);
startTimestamp = _startTimestamp;
endTimestamp = _en... | /**
* @dev Constructor for GiftCrowdsale contract.
* @dev Set first owner who can manage whitelist.
* @param _startTimestamp uint256 The start time ico.
* @param _endTimestamp uint256 The end time ico.
* @param _exchangeRate uint256 The price of the Gift token.
* @param _minCap The minimum amount of tokens ... | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
1319,
1993
]
} | 56,605 | |||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | sellTokens | function sellTokens() public payable whenSaleIsOpen whenWhitelisted(msg.sender) whenNotPaused {
require(msg.value > minimumInvestment);
uint256 _bonus = bonus(msg.sender);
uint256 _discount = discount();
uint256 tokensAmount = (msg.value).mul(exchangeRate).mul(_bonus.add(100)).div((100 - _discount))... | /**
* @dev Function for sell tokens.
* @dev Sells tokens only for wallets from Whitelist while ICO lasts
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
2674,
3186
]
} | 56,606 | |||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | function() public payable {
sellTokens();
}
| /**
* @dev Fallback function allowing the contract to receive funds
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
3275,
3337
]
} | 56,607 | ||||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | withdrawal | function withdrawal(address _wallet) external onlyOwner whenSaleHasEnded {
require(_wallet != address(0));
_wallet.transfer(this.balance);
token.transferOwnership(msg.sender);
}
| /**
* @dev Function for funds withdrawal
* @dev transfers funds to specified wallet once ICO is ended
* @param _wallet address wallet address, to which funds will be transferred
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
3548,
3764
]
} | 56,608 | |||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | assignTokens | function assignTokens(address _to, uint256 _value) external onlyOwner {
token.transferFromIco(_to, _value);
tokensSold = tokensSold.add(_value);
}
| /**
* @dev Function for manual token assignment (token transfer from ICO to requested wallet)
* @param _to address The address which you want transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
4012,
4188
]
} | 56,609 | |||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | addInvestment | function addInvestment(address _from, uint256 _value) internal {
investments[_from] = investments[_from].add(_value);
}
| /**
* @dev Add new investment to the ICO investments storage.
* @param _from The address of a ICO investor.
* @param _value The investment received from a ICO investor.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
4388,
4526
]
} | 56,610 | |||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | refundPayment | function refundPayment() external whenWhitelisted(msg.sender) whenSaleHasEnded {
require(tokensSold < minCap);
require(investments[msg.sender] > 0);
token.burnFrom(msg.sender, token.balanceOf(msg.sender));
uint256 investment = investments[msg.sender];
investments[msg.sender] = 0;
(msg.... | /**
* @dev Function to return money to one customer, if mincap has not been reached
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
4631,
5016
]
} | 56,611 | |||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | transferTokenOwnership | function transferTokenOwnership(address _newOwner) public onlyOwner {
token.transferOwnership(_newOwner);
}
| /**
* @dev Allows the current owner to transfer control of the token contract from ICO to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
5201,
5327
]
} | 56,612 | |||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | unpause | function unpause() public onlyOwner whenPaused {
require(token != address(0) && whitelist != address(0));
super.unpause();
}
| /**
* @dev Owner can't unpause the crowdsale before calling init().
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
6139,
6291
]
} | 56,613 | |||
GiftCrowdsale | contracts/GiftCrowdsale.sol | 0x0f72b988c30a4e4472607703c3363dcfe0f58e0d | Solidity | GiftCrowdsale | contract GiftCrowdsale is Pausable {
using SafeMath for uint256;
uint256 public startTimestamp = 0;
uint256 public endTimestamp = 0;
uint256 public exchangeRate = 0;
uint256 public tokensSold = 0;
uint256 constant public minimumInvestment = 25e16; // 0.25 ETH
uint256 publi... | setExchangeRate | function setExchangeRate(uint256 _exchangeRate) public onlyOwner beforeSaleOpens {
require(_exchangeRate > 0);
exchangeRate = _exchangeRate;
}
| /**
* @dev Owner can change the exchange rate before ICO begins
* @param _exchangeRate new exchange rate
*/ | NatSpecMultiLine | v0.4.19+commit.c4cbbb05 | bzzr://ba470fb4262e60a5f05afd619d0d9bc91844d6d20fc112f9b080dc4749f84dd5 | {
"func_code_index": [
6422,
6594
]
} | 56,614 | |||
MartianMarketWL | MartianMarketWL.sol | 0xd60917e1abde5c9e3395cfba5688c735a89b3281 | Solidity | MartianMarketWL | contract MartianMarketWL is Ownable {
// Events
event TreasuryManaged(address indexed contract_, address treasury_);
event OperatorManaged(address indexed contract_, address operator_, bool bool_);
event GovernorUnstuckOwner(address indexed contract_, address indexed operator_,
address st... | setSuperGovernorAddress | function setSuperGovernorAddress(address superGovernor_) external onlyOwner {
// If superGovernor has been renounced, it is never enabled again.
require(superGovernorAddress != address(0),
"Super Governor Access has been renounced");
superGovernorAddress = superGovernor_;
}
| // Ownable Governance Setup | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://08214d9cc81f6078b879cb8408c62eff112d8ed47a9e56b36c9cd73db1793a7d | {
"func_code_index": [
1813,
2139
]
} | 56,615 | ||
MartianMarketWL | MartianMarketWL.sol | 0xd60917e1abde5c9e3395cfba5688c735a89b3281 | Solidity | MartianMarketWL | contract MartianMarketWL is Ownable {
// Events
event TreasuryManaged(address indexed contract_, address treasury_);
event OperatorManaged(address indexed contract_, address operator_, bool bool_);
event GovernorUnstuckOwner(address indexed contract_, address indexed operator_,
address st... | G_setRegistrationPrice | function G_setRegistrationPrice(uint256 price_) external onlyGovernor {
registrationPrice = price_;
}
| // 2000 $MES | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://08214d9cc81f6078b879cb8408c62eff112d8ed47a9e56b36c9cd73db1793a7d | {
"func_code_index": [
4653,
4773
]
} | 56,616 | ||
MartianMarketWL | MartianMarketWL.sol | 0xd60917e1abde5c9e3395cfba5688c735a89b3281 | Solidity | MartianMarketWL | contract MartianMarketWL is Ownable {
// Events
event TreasuryManaged(address indexed contract_, address treasury_);
event OperatorManaged(address indexed contract_, address operator_, bool bool_);
event GovernorUnstuckOwner(address indexed contract_, address indexed operator_,
address st... | purchaseWLVendingItem | function purchaseWLVendingItem(address contract_, uint256 index_) external {
// Load the WLVendingItem to Memory
WLVendingItem memory _item = contractToWLVendingItems[contract_][index_];
// Check the necessary requirements to purchase
require(bytes(_item.title).length > 0,
"This... | // Core Function of WL Vending (User) | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://08214d9cc81f6078b879cb8408c62eff112d8ed47a9e56b36c9cd73db1793a7d | {
"func_code_index": [
12369,
13681
]
} | 56,617 | ||
MartianMarketWL | MartianMarketWL.sol | 0xd60917e1abde5c9e3395cfba5688c735a89b3281 | Solidity | MartianMarketWL | contract MartianMarketWL is Ownable {
// Events
event TreasuryManaged(address indexed contract_, address treasury_);
event OperatorManaged(address indexed contract_, address operator_, bool bool_);
event GovernorUnstuckOwner(address indexed contract_, address indexed operator_,
address st... | getWLPurchasersOf | function getWLPurchasersOf(address contract_, uint256 index_) external view
returns (address[] memory) {
return contractToWLPurchasers[contract_][index_];
}
| // Read Functions | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://08214d9cc81f6078b879cb8408c62eff112d8ed47a9e56b36c9cd73db1793a7d | {
"func_code_index": [
13707,
13889
]
} | 56,618 | ||
FabFourGear | contracts/FabFour.sol | 0x42412d4f9007102d64cc6b56ed4439a6d31f4ad9 | Solidity | FabFourGear | contract FabFourGear is ERC721Enumerable, Ownable{
using Strings for uint256;
// Constant variables
// ------------------------------------------------------------------------
uint256 public constant SUPPLY_HARD_CAP = 4444; // Total amount of FAB
uint256 public constant PRESALE_SUPPLY = 4... | addToTrustedParties | function addToTrustedParties(address[] calldata addresses) external onlyOwner {
for(uint256 i = 0; i < addresses.length; i++) {
require(addresses[i] != address(0), "NULL_ADDRESS");
require(!_trustedParties[addresses[i]], "DUPLICATE_ENTRY");
_trustedParties[addresses[i]] = true;
}
... | // Permissions functions
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://dbfc5f54ef450100d1eca69226ef749d32ee1627c4286935914b8ea9f9d1d655 | {
"func_code_index": [
3821,
4172
]
} | 56,619 | ||
FabFourGear | contracts/FabFour.sol | 0x42412d4f9007102d64cc6b56ed4439a6d31f4ad9 | Solidity | FabFourGear | contract FabFourGear is ERC721Enumerable, Ownable{
using Strings for uint256;
// Constant variables
// ------------------------------------------------------------------------
uint256 public constant SUPPLY_HARD_CAP = 4444; // Total amount of FAB
uint256 public constant PRESALE_SUPPLY = 4... | hasClaimedPresale | function hasClaimedPresale(address addr) external view returns (bool) {
require(addr != address(0), "NULL_ADDRESS");
return _presaleClaimed[addr] == MAX_CLAIM_PER_WALLET_PRESALE;
}
| // Presale functions
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://dbfc5f54ef450100d1eca69226ef749d32ee1627c4286935914b8ea9f9d1d655 | {
"func_code_index": [
4640,
4850
]
} | 56,620 | ||
FabFourGear | contracts/FabFour.sol | 0x42412d4f9007102d64cc6b56ed4439a6d31f4ad9 | Solidity | FabFourGear | contract FabFourGear is ERC721Enumerable, Ownable{
using Strings for uint256;
// Constant variables
// ------------------------------------------------------------------------
uint256 public constant SUPPLY_HARD_CAP = 4444; // Total amount of FAB
uint256 public constant PRESALE_SUPPLY = 4... | claimReserveNFTs | function claimReserveNFTs(uint256 quantity, address addr) external onlyOwner {
require(totalSupply() < SUPPLY_HARD_CAP, "SOLD_OUT");
require(totalSupply() + quantity <= SUPPLY_HARD_CAP, "EXCEEDS_TOTAL_SUPPLY");
require(quantity <= reservedSupply, "NO_MORE_RESERVED_TOKENS_AVAILABLE");
require(quantit... | // Mint functions
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://dbfc5f54ef450100d1eca69226ef749d32ee1627c4286935914b8ea9f9d1d655 | {
"func_code_index": [
5190,
5723
]
} | 56,621 | ||
FabFourGear | contracts/FabFour.sol | 0x42412d4f9007102d64cc6b56ed4439a6d31f4ad9 | Solidity | FabFourGear | contract FabFourGear is ERC721Enumerable, Ownable{
using Strings for uint256;
// Constant variables
// ------------------------------------------------------------------------
uint256 public constant SUPPLY_HARD_CAP = 4444; // Total amount of FAB
uint256 public constant PRESALE_SUPPLY = 4... | setContractURI | function setContractURI(string calldata URI) external onlyOwner {
_contractURI = URI;
emit ContractURIChanged(URI);
}
| // Base URI Functions
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://dbfc5f54ef450100d1eca69226ef749d32ee1627c4286935914b8ea9f9d1d655 | {
"func_code_index": [
7619,
7764
]
} | 56,622 | ||
FabFourGear | contracts/FabFour.sol | 0x42412d4f9007102d64cc6b56ed4439a6d31f4ad9 | Solidity | FabFourGear | contract FabFourGear is ERC721Enumerable, Ownable{
using Strings for uint256;
// Constant variables
// ------------------------------------------------------------------------
uint256 public constant SUPPLY_HARD_CAP = 4444; // Total amount of FAB
uint256 public constant PRESALE_SUPPLY = 4... | withdrawAll | function withdrawAll() external onlyTrustedParties(msg.sender) {
uint _a1amount = address(this).balance * 26/100;
uint _a2amount = address(this).balance * 15/100;
uint _a3amount = address(this).balance * 15/100;
uint _a4amount = address(this).balance * 10/100;
uint _a5amount = address(this).bal... | //Withdrawal functions
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://dbfc5f54ef450100d1eca69226ef749d32ee1627c4286935914b8ea9f9d1d655 | {
"func_code_index": [
8582,
9964
]
} | 56,623 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | redeem | function redeem(uint256 _amount) external returns (uint256 massetReturned);
| // DEPRECATED but still backwards compatible | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
82,
162
]
} | 56,624 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | depositInterest | function depositInterest(uint256 _amount) external; // V1 & V2
| // V1 & V2 (use balanceOf)
// -------------------------------------------- | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
320,
387
]
} | 56,625 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | depositSavings | function depositSavings(uint256 _amount) external returns (uint256 creditsIssued); // V1 & V2
| // V1 & V2 | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
390,
488
]
} | 56,626 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | depositSavings | function depositSavings(uint256 _amount, address _beneficiary)
external
returns (uint256 creditsIssued); // V2
| // V1 & V2 | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
491,
624
]
} | 56,627 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | redeemCredits | function redeemCredits(uint256 _amount) external returns (uint256 underlyingReturned); // V2
| // V2 | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
627,
724
]
} | 56,628 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | redeemUnderlying | function redeemUnderlying(uint256 _amount) external returns (uint256 creditsBurned); // V2
| // V2 | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
727,
822
]
} | 56,629 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | exchangeRate | function exchangeRate() external view returns (uint256); // V1 & V2
| // V2 | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
825,
897
]
} | 56,630 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | balanceOfUnderlying | function balanceOfUnderlying(address _user) external view returns (uint256 balance); // V2
| // V1 & V2 | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
900,
995
]
} | 56,631 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | underlyingToCredits | function underlyingToCredits(uint256 _credits) external view returns (uint256 underlying); // V2
| // V2 | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
998,
1099
]
} | 56,632 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | ISavingsContractV2 | interface ISavingsContractV2 {
// DEPRECATED but still backwards compatible
function redeem(uint256 _amount) external returns (uint256 massetReturned);
function creditBalances(address) external view returns (uint256); // V1 & V2 (use balanceOf)
// --------------------------------------------
... | creditsToUnderlying | function creditsToUnderlying(uint256 _underlying) external view returns (uint256 credits); // V2
| // V2 | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
1102,
1203
]
} | 56,633 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IMasset | abstract contract IMasset {
// Mint
function mint(
address _input,
uint256 _inputQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 mintOutput);
function mintMulti(
address[] calldata _inputs,
uint256[]... | mint | function mint(
address _input,
uint256 _inputQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 mintOutput);
| // Mint | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
42,
238
]
} | 56,634 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IMasset | abstract contract IMasset {
// Mint
function mint(
address _input,
uint256 _inputQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 mintOutput);
function mintMulti(
address[] calldata _inputs,
uint256[]... | swap | function swap(
address _input,
address _output,
uint256 _inputQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 swapOutput);
| // Swaps | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
830,
1052
]
} | 56,635 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IMasset | abstract contract IMasset {
// Mint
function mint(
address _input,
uint256 _inputQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 mintOutput);
function mintMulti(
address[] calldata _inputs,
uint256[]... | redeem | function redeem(
address _output,
uint256 _mAssetQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 outputQuantity);
| // Redemption | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
1247,
1451
]
} | 56,636 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IMasset | abstract contract IMasset {
// Mint
function mint(
address _input,
uint256 _inputQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 mintOutput);
function mintMulti(
address[] calldata _inputs,
uint256[]... | getBasket | function getBasket() external view virtual returns (bool, bool);
| // Views | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
2277,
2346
]
} | 56,637 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IMasset | abstract contract IMasset {
// Mint
function mint(
address _input,
uint256 _inputQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 mintOutput);
function mintMulti(
address[] calldata _inputs,
uint256[]... | collectInterest | function collectInterest() external virtual returns (uint256 swapFeesGained, uint256 newSupply);
| // SavingsManager | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
2773,
2874
]
} | 56,638 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IMasset | abstract contract IMasset {
// Mint
function mint(
address _input,
uint256 _inputQuantity,
uint256 _minOutputQuantity,
address _recipient
) external virtual returns (uint256 mintOutput);
function mintMulti(
address[] calldata _inputs,
uint256[]... | setCacheSize | function setCacheSize(uint256 _cacheSize) external virtual;
| // Admin | LineComment | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
3026,
3090
]
} | 56,639 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
94,
154
]
} | 56,640 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
237,
310
]
} | 56,641 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
534,
616
]
} | 56,642 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
895,
983
]
} | 56,643 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
1647,
1726
]
} | 56,644 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
2039,
2141
]
} | 56,645 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
606,
1033
]
} | 56,646 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
1963,
2365
]
} | 56,647 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
3121,
3299
]
} | 56,648 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
3524,
3724
]
} | 56,649 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
4094,
4325
]
} | 56,650 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disa... | /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
4576,
5111
]
} | 56,651 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
5291,
5495
]
} | 56,652 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.stat... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
5682,
6109
]
} | 56,653 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
6291,
6496
]
} | 56,654 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionDelegateCall | function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.deleg... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
6685,
7113
]
} | 56,655 |
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | SafeERC20 | library SafeERC20 {
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 va... | safeApprove | function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line ... | /**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
714,
1341
]
} | 56,656 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | SafeERC20 | library SafeERC20 {
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 va... | _callOptionalReturn | function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target ad... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
2489,
3255
]
} | 56,657 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSend... | owner | function owner() public view virtual returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
497,
589
]
} | 56,658 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
1148,
1301
]
} | 56,659 | ||
SaveWrapper | SaveWrapper.sol | 0xd082363752d08c54ab47c248fd5a11f8ee634bb9 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.2+commit.661d1103 | MIT | ipfs://41f8902acf27ffe8ff89ce6a7ba9aa9a5d6e95217982e5456b7a917e0bf3b42a | {
"func_code_index": [
1451,
1700
]
} | 56,660 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.