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
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
setRate
function setRate(uint256 _rate) public onlyOwner beforeSale { require(_rate > 0); rate = _rate; }
/** * @dev Function used to change the exchange rate. * @param _rate The new rate. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 4542, 4669 ] }
29,900
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
setWallets
function setWallets(address _etherWallet, address _teamWallet, address _advisorWallet, address _bountyWallet, address _fundWallet) public onlyOwner inState(State.BEFORE_START) { require(_etherWallet != address(0)); require(_teamWallet != address(0)); require(_advisorWallet != address(0)); require(_b...
/** * @dev Function used to set wallets and enable the sale. * @param _etherWallet Address of ether wallet. * @param _teamWallet Address of team wallet. * @param _advisorWallet Address of advisors wallet. * @param _bountyWallet Address of bounty wallet. * @param _fundWallet Address of fund wallet. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 5021, 6040 ] }
29,901
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
generateTokens
function generateTokens(address beneficiary, uint256 newTokens) public onlyOwner { require(beneficiary != address(0)); require(newTokens > 0); require(issuedTokens.add(newTokens) <= hardCap); issuedTokens = issuedTokens.add(newTokens); token.mint(beneficiary, newTokens); TokenPurchase(ms...
/** * @dev Generate tokens to specific address, necessary to accept other cryptos. * @param beneficiary Address of the beneficiary. * @param newTokens Amount of tokens to be minted. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 6257, 6647 ] }
29,902
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
finishCrowdsale
function finishCrowdsale() public onlyOwner inState(State.SALE) { require(now > saleEnd); // tokens not sold to fund uint256 unspentTokens = hardCap.sub(issuedTokens); token.mint(fundWallet, unspentTokens); currentState = State.CLOSED; token.finishMinting(); }
/** * @dev Finish crowdsale and token minting. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 6717, 7045 ] }
29,903
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
enableRefund
function enableRefund() public onlyOwner inState(State.CLOSED) { currentState = State.REFUND; }
/** * @dev Enable refund after sale. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 7105, 7219 ] }
29,904
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
receivedFrom
function receivedFrom(address beneficiary) public view returns (uint256) { return received[beneficiary]; }
/** * @dev Check the amount of wei received by beneficiary. * @param beneficiary Address of beneficiary. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 7353, 7478 ] }
29,905
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
claimRefund
function claimRefund() public whenNotPaused inState(State.REFUND) { require(received[msg.sender] > 0); uint256 amount = received[msg.sender]; received[msg.sender] = 0; msg.sender.transfer(amount); Refund(msg.sender, amount); }
/** * @dev Function used to claim wei if refund is enabled. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 7561, 7844 ] }
29,906
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
releaseTeamTokens
function releaseTeamTokens() public { teamTokens.release(); }
/** * @dev Function used to release token of team wallet. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 7925, 8005 ] }
29,907
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
reclaimEther
function reclaimEther() public onlyOwner { owner.transfer(this.balance); }
/** * @dev Function used to reclaim ether by owner. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 8080, 8173 ] }
29,908
CraftyCrowdsale
CraftyCrowdsale.sol
0x0e752b742f744fdc2d93774da44c37b72c3e6952
Solidity
CraftyCrowdsale
contract CraftyCrowdsale is Pausable { using SafeMath for uint256; // Amount received from each address mapping(address => uint256) received; // The token being sold MintableToken public token; // start and end timestamps where investments are allowed (both inclusive) uint256 pu...
/** * @title CraftyCrowdsale * @dev CraftyCrowdsale is a contract for managing a Crafty token crowdsale. */
NatSpecMultiLine
getRate
function getRate(uint256 amount) internal view returns (uint256) { if(now < preSaleEnd) { require(amount >= 6797 finney); if(amount <= 8156 finney) return rate.mul(105).div(100); if(amount <= 9515 finney) return rate.mul(1055).div(1000); if(amount <= ...
/** * @dev Get exchange rate based on time and amount. * @param amount Amount received. * @return An uint256 representing the exchange rate. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://8abd80355ac2c56c234759535f574b7c99e152168d4aeb11099b8bd6ca14dc90
{ "func_code_index": [ 8349, 9158 ] }
29,909
AtlantToken
AtlantToken.sol
0x1cf6949f4b661018b3195f3ff98effe12f587263
Solidity
AtlantToken
contract AtlantToken { string public name = "Atlant Token"; string public symbol = "ATL"; uint8 public constant decimals = 8; address public owner; uint256 public constant tokensPerEth = 1; uint256 public constant howManyEtherInWeiToBecomeOwner = 1000 ether; uint256 public constan...
/// @title Atlant Token presale - https://atlant.io (ATL) - crowdfunding code /// Whitepaper: /// https://atlant.io/assets/documents/en/Atlant_WP_publish.pdf
NatSpecSingleLine
transfer
function transfer(address _to, uint256 _value) public returns (bool) { // Abort if not in Operational state. var senderBalance = balances[msg.sender]; if (senderBalance >= _value && _value > 0) { senderBalance -= _value; balances[msg.sender] = senderBalance; balances[...
/// @notice Transfer `_value` tokens from sender's account /// `msg.sender` to provided account address `_to`. /// @notice This function is disabled during the funding. /// @dev Required state: Operational /// @param _to The address of the tokens recipient /// @param _value The amount of token to be transferred /// @re...
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://2838360feebc805270e1d5f51a2450929f448ae7e8b93dde28de32a20044b54b
{ "func_code_index": [ 2222, 2701 ] }
29,910
AtlantToken
AtlantToken.sol
0x1cf6949f4b661018b3195f3ff98effe12f587263
Solidity
AtlantToken
contract AtlantToken { string public name = "Atlant Token"; string public symbol = "ATL"; uint8 public constant decimals = 8; address public owner; uint256 public constant tokensPerEth = 1; uint256 public constant howManyEtherInWeiToBecomeOwner = 1000 ether; uint256 public constan...
/// @title Atlant Token presale - https://atlant.io (ATL) - crowdfunding code /// Whitepaper: /// https://atlant.io/assets/documents/en/Atlant_WP_publish.pdf
NatSpecSingleLine
function () payable external { // Abort if not in Funding Active state. // The checks are split (instead of using or operator) because it is // cheaper this way. if (!funding) revert(); // Do not allow creating 0 or more than the cap tokens. if (msg.value == 0) revert(); ...
/// @notice Create tokens when funding is active. /// @dev Required state: Funding Active /// @dev State transition: -> Funding Success (only if cap reached)
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://2838360feebc805270e1d5f51a2450929f448ae7e8b93dde28de32a20044b54b
{ "func_code_index": [ 4174, 4799 ] }
29,911
ERC20
IERC20.sol
0x43cf2d93f0a46f39eb16cc92d1e10ba90ad21183
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://b0ba05d7d04446265951fdd660631e547f2a9c9cea058eced101b1f00cb248f5
{ "func_code_index": [ 90, 149 ] }
29,912
ERC20
IERC20.sol
0x43cf2d93f0a46f39eb16cc92d1e10ba90ad21183
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://b0ba05d7d04446265951fdd660631e547f2a9c9cea058eced101b1f00cb248f5
{ "func_code_index": [ 228, 300 ] }
29,913
ERC20
IERC20.sol
0x43cf2d93f0a46f39eb16cc92d1e10ba90ad21183
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://b0ba05d7d04446265951fdd660631e547f2a9c9cea058eced101b1f00cb248f5
{ "func_code_index": [ 516, 597 ] }
29,914
ERC20
IERC20.sol
0x43cf2d93f0a46f39eb16cc92d1e10ba90ad21183
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://b0ba05d7d04446265951fdd660631e547f2a9c9cea058eced101b1f00cb248f5
{ "func_code_index": [ 868, 955 ] }
29,915
ERC20
IERC20.sol
0x43cf2d93f0a46f39eb16cc92d1e10ba90ad21183
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * Emits an {Approval} event. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://b0ba05d7d04446265951fdd660631e547f2a9c9cea058eced101b1f00cb248f5
{ "func_code_index": [ 1178, 1256 ] }
29,916
ERC20
IERC20.sol
0x43cf2d93f0a46f39eb16cc92d1e10ba90ad21183
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); /** * @de...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://b0ba05d7d04446265951fdd660631e547f2a9c9cea058eced101b1f00cb248f5
{ "func_code_index": [ 1559, 1660 ] }
29,917
CentralBankoftheRepublicofTurkey
CentralBankoftheRepublicofTurkey.sol
0x264a504704a7098ab49d4f8c528423d509daf086
Solidity
CentralBankoftheRepublicofTurkey
contract CentralBankoftheRepublicofTurkey is ERC20 {using SafeMath for uint256; string public constant symbol = ",000.TRY.TurkishLira"; string public constant name = "Türkiye Cumhuriyet Merkez Bankası-Central Bank of the Republic of Turkey"; uint public constant decimals = 18; uint256 _totalSuppl...
totalSupply
function totalSupply() public view returns (uint256 total_Supply) { total_Supply = _totalSupply; }
// what is the total supply of the ech tokens
LineComment
v0.4.24+commit.e67f0147
bzzr://f941ed42c72c0e24848000094e3ad3acf88ff26ddc54fe547ee2c485109a6c99
{ "func_code_index": [ 1273, 1393 ] }
29,918
CentralBankoftheRepublicofTurkey
CentralBankoftheRepublicofTurkey.sol
0x264a504704a7098ab49d4f8c528423d509daf086
Solidity
CentralBankoftheRepublicofTurkey
contract CentralBankoftheRepublicofTurkey is ERC20 {using SafeMath for uint256; string public constant symbol = ",000.TRY.TurkishLira"; string public constant name = "Türkiye Cumhuriyet Merkez Bankası-Central Bank of the Republic of Turkey"; uint public constant decimals = 18; uint256 _totalSuppl...
balanceOf
function balanceOf(address _owner)public view returns (uint256 balance) { return balances[_owner]; }
// What is the balance of a particular account?
LineComment
v0.4.24+commit.e67f0147
bzzr://f941ed42c72c0e24848000094e3ad3acf88ff26ddc54fe547ee2c485109a6c99
{ "func_code_index": [ 1450, 1572 ] }
29,919
CentralBankoftheRepublicofTurkey
CentralBankoftheRepublicofTurkey.sol
0x264a504704a7098ab49d4f8c528423d509daf086
Solidity
CentralBankoftheRepublicofTurkey
contract CentralBankoftheRepublicofTurkey is ERC20 {using SafeMath for uint256; string public constant symbol = ",000.TRY.TurkishLira"; string public constant name = "Türkiye Cumhuriyet Merkez Bankası-Central Bank of the Republic of Turkey"; uint public constant decimals = 18; uint256 _totalSuppl...
transfer
function transfer(address _to, uint256 _amount)public returns (bool ok) { require( _to != 0x0); require(balances[msg.sender] >= _amount && _amount >= 0); balances[msg.sender] = (balances[msg.sender]).sub(_amount); balances[_to] = (balances[_to]).add(_amount); emit Transfer(msg.sender, _to, _amount);...
// Transfer the balance from owner's account to another account
LineComment
v0.4.24+commit.e67f0147
bzzr://f941ed42c72c0e24848000094e3ad3acf88ff26ddc54fe547ee2c485109a6c99
{ "func_code_index": [ 1647, 2037 ] }
29,920
CentralBankoftheRepublicofTurkey
CentralBankoftheRepublicofTurkey.sol
0x264a504704a7098ab49d4f8c528423d509daf086
Solidity
CentralBankoftheRepublicofTurkey
contract CentralBankoftheRepublicofTurkey is ERC20 {using SafeMath for uint256; string public constant symbol = ",000.TRY.TurkishLira"; string public constant name = "Türkiye Cumhuriyet Merkez Bankası-Central Bank of the Republic of Turkey"; uint public constant decimals = 18; uint256 _totalSuppl...
transferFrom
function transferFrom( address _from, address _to, uint256 _amount )public returns (bool ok) { require( _to != 0x0); require(balances[_from] >= _amount && allowed[_from][msg.sender] >= _amount && _amount >= 0); balances[_from] = (balances[_from]).sub(_amount); allowed[_from][msg.sender] = (allowed[_from][msg.sender...
// Send _value amount of tokens from address _from to address _to // The transferFrom method is used for a withdraw workflow, allowing contracts to send // tokens on your behalf, for example to "deposit" to a contract address and/or to charge // fees in sub-currencies; the command should fail unless the _from account h...
LineComment
v0.4.24+commit.e67f0147
bzzr://f941ed42c72c0e24848000094e3ad3acf88ff26ddc54fe547ee2c485109a6c99
{ "func_code_index": [ 2532, 3019 ] }
29,921
CentralBankoftheRepublicofTurkey
CentralBankoftheRepublicofTurkey.sol
0x264a504704a7098ab49d4f8c528423d509daf086
Solidity
CentralBankoftheRepublicofTurkey
contract CentralBankoftheRepublicofTurkey is ERC20 {using SafeMath for uint256; string public constant symbol = ",000.TRY.TurkishLira"; string public constant name = "Türkiye Cumhuriyet Merkez Bankası-Central Bank of the Republic of Turkey"; uint public constant decimals = 18; uint256 _totalSuppl...
approve
function approve(address _spender, uint256 _amount)public returns (bool ok) { require( _spender != 0x0); allowed[msg.sender][_spender] = _amount; emit Approval(msg.sender, _spender, _amount); return true; }
// Allow _spender to withdraw from your account, multiple times, up to the _value amount. // If this function is called again it overwrites the current allowance with _value.
LineComment
v0.4.24+commit.e67f0147
bzzr://f941ed42c72c0e24848000094e3ad3acf88ff26ddc54fe547ee2c485109a6c99
{ "func_code_index": [ 3210, 3468 ] }
29,922
CentralBankoftheRepublicofTurkey
CentralBankoftheRepublicofTurkey.sol
0x264a504704a7098ab49d4f8c528423d509daf086
Solidity
CentralBankoftheRepublicofTurkey
contract CentralBankoftheRepublicofTurkey is ERC20 {using SafeMath for uint256; string public constant symbol = ",000.TRY.TurkishLira"; string public constant name = "Türkiye Cumhuriyet Merkez Bankası-Central Bank of the Republic of Turkey"; uint public constant decimals = 18; uint256 _totalSuppl...
transferOwnership
function transferOwnership(address newOwner) external onlyOwner { uint256 x = balances[owner]; require( newOwner != 0x0); balances[newOwner] = (balances[newOwner]).add(balances[owner]); balances[owner] = 0; owner = newOwner; emit Transfer(msg.sender, newOwner, x); }
//In case the ownership needs to be transferred
LineComment
v0.4.24+commit.e67f0147
bzzr://f941ed42c72c0e24848000094e3ad3acf88ff26ddc54fe547ee2c485109a6c99
{ "func_code_index": [ 3740, 4048 ] }
29,923
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 259, 445 ] }
29,924
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 723, 864 ] }
29,925
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 1162, 1359 ] }
29,926
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 1613, 2089 ] }
29,927
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 2560, 2697 ] }
29,928
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 3188, 3471 ] }
29,929
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 3931, 4066 ] }
29,930
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 4546, 4717 ] }
29,931
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 94, 154 ] }
29,932
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 237, 310 ] }
29,933
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 534, 616 ] }
29,934
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 895, 983 ] }
29,935
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 1647, 1726 ] }
29,936
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 2039, 2141 ] }
29,937
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 606, 1230 ] }
29,938
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 2160, 2562 ] }
29,939
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 3318, 3496 ] }
29,940
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 3721, 3922 ] }
29,941
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 4292, 4523 ] }
29,942
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 4774, 5095 ] }
29,943
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeERC20
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, add...
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `...
NatSpecMultiLine
safeApprove
function safeApprove(IERC20 token, address spender, uint256 value) internal { // 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.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 747, 1374 ] }
29,944
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
SafeERC20
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, add...
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `...
NatSpecMultiLine
_callOptionalReturn
function _callOptionalReturn(IERC20 token, bytes memory data) private { // 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.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 2393, 3159 ] }
29,945
WithdrawSai
WithdrawSai.sol
0x09d9c8449e841f9661080ad3eb779b6d1b18ce05
Solidity
WithdrawSai
contract WithdrawSai { using SafeMath for uint256; using SafeERC20 for IERC20; ISaiTap public constant SaiTap = ISaiTap(0xBda109309f9FafA6Dd6A9CB9f1Df4085B27Ee8eF); IOneSplit public constant oneSplit = IOneSplit(0xC586BeF4a0992C495Cf22e1aeEE4E446CECDee0E); IWETH public constant weth = IWETH(0xC02aaA39b223FE...
removeEth
function removeEth(address payable toAddress) public onlyOwner { toAddress.transfer(address(this).balance); }
// Owner functions
LineComment
v0.6.8+commit.0bbfe453
None
ipfs://8373dde8933f76316946395c707273441160bb9fa021963b214ca42795b94f74
{ "func_code_index": [ 2680, 2796 ] }
29,946
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msg...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 501, 585 ] }
29,947
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msg...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 1143, 1296 ] }
29,948
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msg...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) private onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 1446, 1688 ] }
29,949
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 94, 154 ] }
29,950
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 237, 310 ] }
29,951
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 534, 616 ] }
29,952
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 895, 983 ] }
29,953
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 1647, 1726 ] }
29,954
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 2039, 2141 ] }
29,955
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 259, 445 ] }
29,956
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 723, 864 ] }
29,957
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 1162, 1359 ] }
29,958
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 1613, 2089 ] }
29,959
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 2560, 2697 ] }
29,960
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3188, 3471 ] }
29,961
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3931, 4066 ] }
29,962
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 4546, 4717 ] }
29,963
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 606, 1230 ] }
29,964
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 2160, 2562 ] }
29,965
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3318, 3496 ] }
29,966
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3721, 3922 ] }
29,967
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 4292, 4523 ] }
29,968
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 4774, 5095 ] }
29,969
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 1122, 1210 ] }
29,970
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 1324, 1416 ] }
29,971
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 2049, 2137 ] }
29,972
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 2197, 2302 ] }
29,973
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
minimumSupply
function minimumSupply() public view returns (uint256) { return _minimumSupply; }
/** * @dev See {IERC20-minimumSupply}. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 2368, 2468 ] }
29,974
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 2526, 2650 ] }
29,975
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 2858, 3038 ] }
29,976
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3096, 3252 ] }
29,977
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3394, 3568 ] }
29,978
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amou...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 4037, 4363 ] }
29,979
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public { require(msg.sender == governance, "governance"); _mint(spender, addedValue); }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 4773, 4952 ] }
29,980
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 5448, 5722 ] }
29,981
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 remai...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 6207, 7120 ] }
29,982
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 7396, 7707 ] }
29,983
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 8038, 8461 ] }
29,984
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 8896, 9247 ] }
29,985
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 9574, 9669 ] }
29,986
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; uint256 public _minimumSupply = 100000000000...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 10267, 10364 ] }
29,987
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20Burnable
abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, ...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
burn
function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); }
/** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 161, 257 ] }
29,988
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
ERC20Burnable
abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, ...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
burnFrom
function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); }
/** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 569, 867 ] }
29,989
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_add
function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; retur...
/** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 908, 1327 ] }
29,990
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_remove
function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element f...
/** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 1498, 3047 ] }
29,991
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_contains
function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; }
/** * @dev Returns true if the value is in the set. O(1). */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3128, 3262 ] }
29,992
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_length
function _length(Set storage set) private view returns (uint256) { return set._values.length; }
/** * @dev Returns the number of values on the set. O(1). */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3343, 3457 ] }
29,993
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
_at
function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; }
/** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 3796, 4005 ] }
29,994
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
add
function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); }
/** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 4254, 4402 ] }
29,995
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
remove
function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); }
/** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 4573, 4727 ] }
29,996
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
contains
function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); }
/** * @dev Returns true if the value is in the set. O(1). */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 4808, 4971 ] }
29,997
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
length
function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); }
/** * @dev Returns the number of values in the set. O(1). */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 5052, 5174 ] }
29,998
Lucky7Finance
Lucky7Finance.sol
0xfef66645c84c65c162b45c41088df1ff4d0b9f96
Solidity
EnumerableSet
library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are...
/** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are ma...
NatSpecMultiLine
at
function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); }
/** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://81cb35204f7a419eb325e87c86dc919deb9864fd7025bd3d7ce4ed32018638f4
{ "func_code_index": [ 5513, 5667 ] }
29,999