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
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
reinvest
function reinvest() public returns(uint256) { address accountHolder = msg.sender; distributeDividends(0, NULL_ADDRESS); // Just in case BITX-only transactions happened. uint256 payout; uint256 bonusPayout; (payout, bonusPayout) = clearDividends(accountHolder); emit onWithdraw(accountHolder, payout, bonusPay...
// Use all the ETH you earned hodling BXTG to buy more BXTG. // Returns the amount of tokens created.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 10303, 10727 ] }
28,900
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
reinvestPartial
function reinvestPartial(uint256 ethToReinvest, bool withdrawAfter) public returns(uint256 tokensCreated) { address payable accountHolder = msg.sender; distributeDividends(0, NULL_ADDRESS); // Just in case BITX-only transactions happened. uint256 payout = dividendsOf(accountHolder, false); uint256 bonusPayout...
// Use some of the ETH you earned hodling BXTG to buy more BXTG. // You can withdraw the rest or keep it in here allocated for you. // Returns the amount of tokens created.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 10909, 12218 ] }
28,901
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
reinvestPartial
function reinvestPartial(uint256 ethToReinvest) public returns(uint256) { return reinvestPartial(ethToReinvest, true); }
// I'm just a man who loves "default variables"
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 12271, 12398 ] }
28,902
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
sell
function sell(uint256 amount, bool withdrawAfter) public returns(uint256) { require(amount > 0, "You have to sell something"); uint256 sellAmount = destroyTokens(msg.sender, amount); if (withdrawAfter && dividendsOf(msg.sender, true) > 0) { withdrawDividends(msg.sender); } return sellAmount; }
// There's literally no reason to call this function
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 12456, 12773 ] }
28,903
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
sell
function sell(uint256 amount) public returns(uint256) { require(amount > 0, "You have to sell something"); return destroyTokens(msg.sender, amount); }
// Again with the default variables!
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 12815, 12975 ] }
28,904
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
withdraw
function withdraw() public{ require(dividendsOf(msg.sender, true) > 0, "No dividends to withdraw"); withdrawDividends(msg.sender); }
// Transfer the sender's masternode bonuses and their outstanding divs to their wallet.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 13068, 13210 ] }
28,905
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
exit
function exit() public{ address payable accountHolder = msg.sender; uint256 balance = balances[accountHolder]; if (balance > 0) { destroyTokens(accountHolder, balance); } if (dividendsOf(accountHolder, true) > 0) { withdrawDividends(accountHolder); } }
// There's definitely no reason to call this function
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 13269, 13551 ] }
28,906
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
setReferrer
function setReferrer(address ref) public{ savedReferral[msg.sender] = ref; }
// Since website won't be released on launch, provide something on etherscan which will allow users to easily set masternodes.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 13683, 13766 ] }
28,907
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
donateDividends
function donateDividends() payable public{ distributeDividends(0, NULL_ADDRESS); emit onDonatedDividends(msg.sender, msg.value); }
// Another BXTG selling point: Get BXTG-exclusive didvidends _combined with_ BITX dividends!
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 13864, 14004 ] }
28,908
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
baseBITX
function baseBITX() external view returns(address) { return address(bitx); }
// --Public write functions-- // --Public read-only functions // Returns the BITX address.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 14108, 14191 ] }
28,909
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
refHandlerAddress
function refHandlerAddress() external view returns(address) { return address(refHandler); }
// Returns the salve account address (was mostly used for debugging purposes)
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 14274, 14372 ] }
28,910
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
gauntletTypeOf
function gauntletTypeOf(address accountHolder) public view returns(uint stakeAmount, uint gType, uint end) { if (isGauntletExpired(accountHolder)) { return (0, 0, gauntletEnd[accountHolder]); } else { return (gauntletBalance[accountHolder], gauntletType[accountHolder], gauntletEnd[accountHolder]); } }
// Retruns an addresses gauntlet type.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 14416, 14739 ] }
28,911
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
myGauntletType
function myGauntletType() public view returns(uint stakeAmount, uint gType, uint end) { return gauntletTypeOf(msg.sender); }
// Same as above except for msg.sender
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 14783, 14914 ] }
28,912
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
usableBalanceOf
function usableBalanceOf(address accountHolder) public view returns(uint balance) { if (isGauntletExpired(accountHolder)) { return balances[accountHolder]; } else { return balances[accountHolder].sub(gauntletBalance[accountHolder]); } }
// Returns an addresse's BXTG balance minus what they have in their gauntlet.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 14997, 15254 ] }
28,913
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
myUsableBalance
function myUsableBalance() public view returns(uint balance) { return usableBalanceOf(msg.sender); }
// Same as above except for msg.sender
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 15298, 15405 ] }
28,914
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
balanceOf
function balanceOf(address accountHolder) external view returns(uint balance) { return balances[accountHolder]; }
// I mean, every ERC20 token has this function. I'm sure you know what it does.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 15490, 15610 ] }
28,915
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
myBalance
function myBalance() public view returns(uint256) { return balances[msg.sender]; }
// Same as above except for msg.sender
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 15654, 15743 ] }
28,916
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
allowance
function allowance(address sugardaddy, address spender) external view returns(uint remaining) { return allowances[sugardaddy][spender]; }
// See if the specified sugardaddy allows the spender to spend their tokens
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 15824, 15968 ] }
28,917
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
totalBalance
function totalBalance() public view returns(uint256) { return address(this).balance + bitx.myDividends(true) + refHandler.totalBalance(); }
// Returns all the ETH that this contract has access to
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 16029, 16175 ] }
28,918
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
dividendsOf
function dividendsOf(address customerAddress, bool includeReferralBonus) public view returns(uint256) { uint256 divs = uint256(int256(profitPerShare * balances[customerAddress]) - payouts[customerAddress]) / ROUNDING_MAGNITUDE; if (includeReferralBonus) { divs += bonuses[customerAddress]; } return divs; }
// Returns the ETH the specified address is owed.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 16230, 16556 ] }
28,919
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
dividendsOf
function dividendsOf(address customerAddress) public view returns(uint256) { return dividendsOf(customerAddress, true); }
// Same as above except includes the masternode bonus
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 16615, 16743 ] }
28,920
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
myDividends
function myDividends() public view returns(uint256) { return dividendsOf(msg.sender, true); }
// Alias of dividendsOf(msg.sender)
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 16784, 16884 ] }
28,921
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
myDividends
function myDividends(bool includeReferralBonus) public view returns(uint256) { return dividendsOf(msg.sender, includeReferralBonus); }
// Alias of dividendsOf(msg.sender, includeReferralBonus)
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 16947, 17088 ] }
28,922
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
refBonusOf
function refBonusOf(address customerAddress) external view returns(uint256) { return bonuses[customerAddress]; }
// Returns the masternode earnings of a specified account
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 17151, 17270 ] }
28,923
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
myRefBonus
function myRefBonus() external view returns(uint256) { return bonuses[msg.sender]; }
// Same as above xcept with msg.sender
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 17314, 17405 ] }
28,924
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
stakingRequirement
function stakingRequirement() external view returns(uint256) { return referralRequirement; }
// Backwards compatibility with the BITX interface
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 17461, 17560 ] }
28,925
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
calculateTokensReceived
function calculateTokensReceived(uint256 ethereumToSpend) public view returns(uint256) { return bitx.calculateTokensReceived(ethereumToSpend); }
// Backwards compatibility with the BITX interface
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 17616, 17767 ] }
28,926
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
calculateEthereumReceived
function calculateEthereumReceived(uint256 tokensToSell) public view returns(uint256) { return bitx.calculateEthereumReceived(tokensToSell); }
// Backwards compatibility with the BITX interface
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 17823, 17972 ] }
28,927
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
isGauntletExpired
function isGauntletExpired(address holder) internal view returns(bool) { if (gauntletType[holder] != 0) { if (gauntletType[holder] == 1) { return (block.timestamp >= gauntletEnd[holder]); } else if (gauntletType[holder] == 2) { return (bitx.totalSupply() >= gauntletEnd[holder]); } else if (gauntletTy...
// --Public read-only functions-- // Internal functions // Returns true if the gauntlet has expired. Otherwise, false.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 18102, 18566 ] }
28,928
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
updateUsableBalanceOf
function updateUsableBalanceOf(address holder) internal returns(uint256) { // isGauntletExpired is a _view_ function, with uses STATICCALL in solidity 0.5.0 or later. // Since STATICCALLs can't modifiy the state, re-entry attacks aren't possible here. if (isGauntletExpired(holder)) { if (gauntletType[holder] =...
// Same as usableBalanceOf, except the gauntlet is lifted when it's expired.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 18648, 19263 ] }
28,929
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
createTokens
function createTokens(address creator, uint256 eth, address referrer, bool reinvestment) internal returns(uint256) { // Let's not call the parent bitx all the time. uint256 parentReferralRequirement = bitx.stakingRequirement(); // How much ETH will be given to the referrer if there is one. uint256 referralBonus...
// This is the actual buy function
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 19303, 24600 ] }
28,930
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
destroyTokens
function destroyTokens(address weakHand, uint256 bags) internal returns(uint256) { require(updateUsableBalanceOf(weakHand) >= bags, "Insufficient balance"); // Give the weak hand the last of their deserved payout. // Also updates lastTotalBalance distributeDividends(0, NULL_ADDRESS); uint256 tokenBalance = ...
// This is marked as an internal function because selling could have been the result of transfering BXTG to the contract via a transferFrom transaction.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 24758, 26217 ] }
28,931
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
sendETH
function sendETH(address payable to, uint256 amount) internal { uint256 childTotalBalance = refHandler.totalBalance(); uint256 thisBalance = address(this).balance; uint256 thisTotalBalance = thisBalance + bitx.myDividends(true); if (childTotalBalance >= amount) { // the refHanlder has enough of its own ETH t...
// sends ETH to the specified account, using all the ETH BXTG has access to.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 26299, 27249 ] }
28,932
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
distributeDividends
function distributeDividends(uint256 bonus, address bonuser) internal{ // Prevents "HELP I WAS THE LAST PERSON WHO SOLD AND I CAN'T WITHDRAW MY ETH WHAT DO????" (dividing by 0 results in a crash) if (totalSupply > 0) { uint256 tb = totalBalance(); uint256 delta = tb - lastTotalBalance; if (delta > 0) { ...
// Take the ETH we've got and distribute it among our token holders.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 27323, 27956 ] }
28,933
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
clearDividends
function clearDividends(address accountHolder) internal returns(uint256, uint256) { uint256 payout = dividendsOf(accountHolder, false); uint256 bonusPayout = bonuses[accountHolder]; payouts[accountHolder] += int256(payout * ROUNDING_MAGNITUDE); bonuses[accountHolder] = 0; // External apps can now get reli...
// Clear out someone's dividends.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 27995, 28385 ] }
28,934
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
withdrawDividends
function withdrawDividends(address payable accountHolder) internal { distributeDividends(0, NULL_ADDRESS); // Just in case BITX-only transactions happened. uint256 payout; uint256 bonusPayout; (payout, bonusPayout) = clearDividends(accountHolder); emit onWithdraw(accountHolder, payout, bonusPayout, false); ...
// Withdraw 100% of someone's dividends
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 28430, 28807 ] }
28,935
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
actualTransfer
function actualTransfer (address payable from, address payable to, uint value, bytes memory data, string memory func, bool careAboutHumanity) internal{ require(updateUsableBalanceOf(from) >= value, "Insufficient balance"); require(to != address(refHandler), "My slave doesn't get paid"); // I don't know why anyone w...
// The internal transfer function.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 28847, 30834 ] }
28,936
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
isContract
function isContract(address _addr) internal view returns(bool) { uint length; assembly { //retrieve the size of the code on target address, this needs assembly length := extcodesize(_addr) } return (length>0); }
// If bytecode exists at _addr then the _addr is a contract.
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 30900, 31135 ] }
28,937
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
tokenFallback
function tokenFallback(address from, uint value, bytes memory data) public pure{ revert("I don't want your shitcoins!"); }
// Reject possible accidental sendin of higher-tech shitcoins. (with a fancy message)
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 31226, 31355 ] }
28,938
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
BitGold
contract BitGold { using SafeMath for uint256; using SafeMath for uint; using SafeMath for int256; modifier onlyOwner { require(msg.sender == owner); _; } // Make the thing constructor(address h) public { // Set up ERC20 values name = "BitX Gold"; symbol = "BXTG"; decimals = 18; t...
takeShitcoin
function takeShitcoin(address shitCoin) public{ // Don't allow people to siphon funds from us require(shitCoin != address(bitx), "BITX isn't a shitcoin"); ERC20interface s = ERC20interface(shitCoin); s.transfer(msg.sender, s.balanceOf(address(this))); }
// Allow anyone else to take forcefully sent low-tech shitcoins. (I sure as hell don't want them)
LineComment
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 31458, 31727 ] }
28,939
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { if (a == 0 || b == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { if (a == 0 || b == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 86, 259 ] }
28,940
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { if (a == 0 || b == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns(uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 340, 609 ] }
28,941
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { if (a == 0 || b == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns(uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 720, 829 ] }
28,942
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { if (a == 0 || b == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns(uint256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 890, 1011 ] }
28,943
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { if (a == 0 || b == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(int256 a, int256 b) internal pure returns(int256 c) { c = a - b; assert(c <= a); return c; }
/** * @dev Subtracts two numbers, throws on underflow */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 1077, 1195 ] }
28,944
BitGold
BitGold.sol
0xe3d9c7bf38a77215d215b1eef8acb1d01a6ec99b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { if (a == 0 || b == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(int256 a, int256 b) internal pure returns(int256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.5.1+commit.c8a2cb62
None
bzzr://1f3aca5d091a9bf9aa242606e6cef2be07f377d81f6a263da2c3bd3cf62de4ce
{ "func_code_index": [ 1256, 1374 ] }
28,945
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
addManyToCasino
function addManyToCasino(address account, uint16[] calldata tokenIds, bytes32[][] calldata employmentProof) external whenNotPaused nonReentrant { require(account == _msgSender(), "Rechek sender of transaction"); require(tokenIds.length > 0, "No tokens sent"); for (uint i = 0; i < tokenIds.length; i++) { r...
/** * adds DeezNuts NFT to the CasinoEmployees (staking) * @param account the address of the staker * @param tokenIds the IDs of the Sheep and Wolves to stake */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 6123, 6843 ] }
28,946
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
_addTokenToCasino
function _addTokenToCasino(address account, uint16 tokenId, bytes32[] calldata proofOfEmployment) internal whenNotPaused _updateEarnings { uint72 tokenDailyRate = getDailyRateForToken(tokenId, proofOfEmployment); casinoEmployees[tokenId] = Stake({ owner: account, tokenId: uint16(tokenId), value: uint40(...
/** * adds a single Sheep to the Barn * @param account the address of the staker * @param tokenId the ID of the Sheep to add to the Barn */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 6999, 7431 ] }
28,947
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
claimManyFromCasino
function claimManyFromCasino(uint16[] calldata tokenIds, bool unstake, uint256 gambleOption) external nonReentrant whenNotPaused _updateEarnings { require(0 < gambleOption && gambleOption < 5, "Gamble option has to be 1, 2 or 3. Only use 4 if you don't want any bonus"); uint128 owed; for (uint i = 0; i < tok...
/** * realize $NUTS earnings and optionally unstake tokens from the Casino * @param tokenIds the IDs of the tokens to claim earnings from * @param unstake whether or not to unstake ALL of the tokens listed in tokenIds * @param gambleOption int to determine withdrawal risk */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 7757, 9968 ] }
28,948
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
_claimNutFromCasino
function _claimNutFromCasino(uint16 tokenId, bool unstake) internal returns (uint128 owed) { Stake memory stake = casinoEmployees[tokenId]; require(stake.owner == _msgSender(), "Not the stake owner"); if (totalNutsEarned < MAXIMUM_GLOBAL_NUTS) { owed = uint128(((block.timestamp.sub(stake.value)).mul(stake....
/** * realize $NUTS earnings for a single Nut * @param tokenId the ID of the Sheep to claim earnings from * @param unstake whether or not to unstake the Sheep * @return owed - the amount of $NUTS earned */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 10193, 11235 ] }
28,949
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
rescue
function rescue(uint16[] calldata tokenIds) external nonReentrant { require(rescueEnabled, "RESCUE DISABLED"); uint16 tokenId; Stake memory stake; for (uint i = 0; i < tokenIds.length; i++) { tokenId = tokenIds[i]; stake = casinoEmployees[tokenId]; require(stake.owner == _msgSender(), "Only ow...
/** * emergency unstake tokens * @param tokenIds the IDs of the tokens to claim earnings from */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 11346, 11948 ] }
28,950
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
setRescueEnabled
function setRescueEnabled(bool _enabled) external onlyOwner { rescueEnabled = _enabled; }
/** * allows owner to enable "rescue mode" * simplifies accounting, prioritizes tokens out in emergency */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 12445, 12542 ] }
28,951
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
setPaused
function setPaused(bool _paused) external onlyOwner { if (_paused) _pause(); else _unpause(); }
/** * enables owner to pause / unpause minting */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 12602, 12709 ] }
28,952
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
onERC721Received
function onERC721Received( address, address from, uint256, bytes calldata ) external pure override returns (bytes4) { require(from == address(0x0), "Cannot send tokens to Casino directly"); return IERC721Receiver.onERC721Received.selector; }
/** READ ONLY */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 12731, 13026 ] }
28,953
DeezRoleManager
contracts/DeezNutsCasino.sol
0x13ce0c47c418fd6aa06e0b5ea56901dfc6f1bbc8
Solidity
DeezNutsCasino
contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event Gambl...
random
function random(uint256 seed) internal view returns (uint256) { return uint256(keccak256(abi.encodePacked( tx.origin, blockhash(block.number - 1), block.timestamp, seed ))); }
/** * generates a pseudorandom number * @param seed a value ensure different outcomes for different sources in the same block * @return a pseudorandom value */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
{ "func_code_index": [ 13202, 13413 ] }
28,954
MERIDIANERC20
MERIDIANERC20.sol
0x1a61250a2bea646478184730d25648811bd429fe
Solidity
MERIDIANERC20
contract MERIDIANERC20 { string public name = "Meridian"; string public symbol = "MDN"; uint8 public decimals = 8; uint256 public totalSupply = 51000000; uint256 public initialSupply = 51000000; mapping (address => uint256) public balanceOf; mapping (address => mapping (addres...
MERIDIANERC20
function MERIDIANERC20 (string tokenName, string tokenSymbol) public { totalSupply = initialSupply * 10 ** uint256(decimals); balanceOf[msg.sender] = totalSupply; name = tokenName ="Meridian"; symbol = tokenSymbol ="MDN"; ...
/** * Constrctor function * * Initializes contract with initial supply tokens to the creator of the contract */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://057b9ceb6b61dc233282a0d78b7eb98c4f6cde7b618540868324fcc6bba9acad
{ "func_code_index": [ 637, 1005 ] }
28,955
MERIDIANERC20
MERIDIANERC20.sol
0x1a61250a2bea646478184730d25648811bd429fe
Solidity
MERIDIANERC20
contract MERIDIANERC20 { string public name = "Meridian"; string public symbol = "MDN"; uint8 public decimals = 8; uint256 public totalSupply = 51000000; uint256 public initialSupply = 51000000; mapping (address => uint256) public balanceOf; mapping (address => mapping (addres...
_transfer
function _transfer(address _from, address _to, uint _value) internal { // Prevent transfer to 0x0 address. Use burn() instead require(_to != 0x0); require(balanceOf[_from] >= _value); require(balanceOf[_to] + _value > balanceOf[_to]); uint previousBalances = balanceOf[_from] + balanceOf[_to]; ...
/** * Internal transfer, only can be called by this contract */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://057b9ceb6b61dc233282a0d78b7eb98c4f6cde7b618540868324fcc6bba9acad
{ "func_code_index": [ 1089, 1622 ] }
28,956
MERIDIANERC20
MERIDIANERC20.sol
0x1a61250a2bea646478184730d25648811bd429fe
Solidity
MERIDIANERC20
contract MERIDIANERC20 { string public name = "Meridian"; string public symbol = "MDN"; uint8 public decimals = 8; uint256 public totalSupply = 51000000; uint256 public initialSupply = 51000000; mapping (address => uint256) public balanceOf; mapping (address => mapping (addres...
transfer
function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); }
/** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://057b9ceb6b61dc233282a0d78b7eb98c4f6cde7b618540868324fcc6bba9acad
{ "func_code_index": [ 1828, 1940 ] }
28,957
MERIDIANERC20
MERIDIANERC20.sol
0x1a61250a2bea646478184730d25648811bd429fe
Solidity
MERIDIANERC20
contract MERIDIANERC20 { string public name = "Meridian"; string public symbol = "MDN"; uint8 public decimals = 8; uint256 public totalSupply = 51000000; uint256 public initialSupply = 51000000; mapping (address => uint256) public balanceOf; mapping (address => mapping (addres...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; }
/** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://057b9ceb6b61dc233282a0d78b7eb98c4f6cde7b618540868324fcc6bba9acad
{ "func_code_index": [ 2215, 2516 ] }
28,958
MERIDIANERC20
MERIDIANERC20.sol
0x1a61250a2bea646478184730d25648811bd429fe
Solidity
MERIDIANERC20
contract MERIDIANERC20 { string public name = "Meridian"; string public symbol = "MDN"; uint8 public decimals = 8; uint256 public totalSupply = 51000000; uint256 public initialSupply = 51000000; mapping (address => uint256) public balanceOf; mapping (address => mapping (addres...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; return true; }
/** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://057b9ceb6b61dc233282a0d78b7eb98c4f6cde7b618540868324fcc6bba9acad
{ "func_code_index": [ 2780, 2956 ] }
28,959
MERIDIANERC20
MERIDIANERC20.sol
0x1a61250a2bea646478184730d25648811bd429fe
Solidity
MERIDIANERC20
contract MERIDIANERC20 { string public name = "Meridian"; string public symbol = "MDN"; uint8 public decimals = 8; uint256 public totalSupply = 51000000; uint256 public initialSupply = 51000000; mapping (address => uint256) public balanceOf; mapping (address => mapping (addres...
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } }
/** * Set allowance for other address and notify * * Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it * * @param _spender The address authorized to spend * @param _value the max amount they can spend * @param _extraData some extra information to s...
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://057b9ceb6b61dc233282a0d78b7eb98c4f6cde7b618540868324fcc6bba9acad
{ "func_code_index": [ 3350, 3702 ] }
28,960
MERIDIANERC20
MERIDIANERC20.sol
0x1a61250a2bea646478184730d25648811bd429fe
Solidity
MERIDIANERC20
contract MERIDIANERC20 { string public name = "Meridian"; string public symbol = "MDN"; uint8 public decimals = 8; uint256 public totalSupply = 51000000; uint256 public initialSupply = 51000000; mapping (address => uint256) public balanceOf; mapping (address => mapping (addres...
burn
function burn(uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); balanceOf[msg.sender] -= _value; totalSupply -= _value; Burn(msg.sender, _value); return true; }
/** * Destroy tokens * * Remove `_value` tokens from the system irreversibly * * @param _value the amount of money to burn */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://057b9ceb6b61dc233282a0d78b7eb98c4f6cde7b618540868324fcc6bba9acad
{ "func_code_index": [ 3872, 4164 ] }
28,961
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() publ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 633, 798 ] }
28,962
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() publ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 880, 985 ] }
28,963
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 81, 228 ] }
28,964
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 304, 564 ] }
28,965
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 671, 775 ] }
28,966
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 831, 945 ] }
28,967
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specified address * @par...
totalSupply
function totalSupply() public view returns (uint256) { return totalSupply_; }
/** * @dev total number of tokens in existence */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 181, 261 ] }
28,968
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specified address * @par...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 407, 709 ] }
28,969
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specified address * @par...
balanceOf
function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 903, 999 ] }
28,970
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sen...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 376, 796 ] }
28,971
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool) { require((_value == 0 ) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate thi...
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 1401, 1646 ] }
28,972
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 1952, 2075 ] }
28,973
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 2510, 2764 ] }
28,974
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _va...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
decreaseApproval
function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } emit Approval(msg.sender, _sp...
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * * approve should be called when allowed[_spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * @param _spend...
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 3204, 3580 ] }
28,975
MICToken
MICToken.sol
0xc16a39f7f209f5eb3e3d3698f9b9c5ac8dbf40c5
Solidity
MICToken
contract MICToken is StandardToken{ string public constant name = "MIC Token"; // solium-disable-line uppercase string public constant symbol = "MIC"; // solium-disable-line uppercase uint8 public constant decimals = 18; // solium-disable-line uppercase uint256 public constant INITIAL_SUPPLY = 190000000000000000000...
function() payable public { revert(); }
/** * The fallback function. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://55a411c309e3bdf2eaa1a9df1eea901badf512168c34f9b7e5ba5709b09cab1d
{ "func_code_index": [ 689, 731 ] }
28,976
VoucherSets
contracts/interfaces/IVoucherSets.sol
0xc7ce90b985cbd9b6d6daab012f2622e437a7101c
Solidity
IVoucherSets
interface IVoucherSets is IERC1155, IERC1155MetadataURI { /** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawi...
pause
function pause() external;
/** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawing funds if contract is paused. */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 360, 390 ] }
28,977
VoucherSets
contracts/interfaces/IVoucherSets.sol
0xc7ce90b985cbd9b6d6daab012f2622e437a7101c
Solidity
IVoucherSets
interface IVoucherSets is IERC1155, IERC1155MetadataURI { /** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawi...
unpause
function unpause() external;
/** * @notice Unpause the Cashier && the Voucher Kernel contracts. * All functions related to creating new batch, requestVoucher or withdraw will be unpaused. */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 573, 605 ] }
28,978
VoucherSets
contracts/interfaces/IVoucherSets.sol
0xc7ce90b985cbd9b6d6daab012f2622e437a7101c
Solidity
IVoucherSets
interface IVoucherSets is IERC1155, IERC1155MetadataURI { /** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawi...
mint
function mint( address _to, uint256 _tokenId, uint256 _value, bytes calldata _data ) external;
/** * @notice Mint an amount of a desired token * Currently no restrictions as to who is allowed to mint - so, it is external. * @dev ERC-1155 * @param _to owner of the minted token * @param _tokenId ID of the token to be minted * @param _value Amount of the token to be minted * @param _data Additi...
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 1034, 1168 ] }
28,979
VoucherSets
contracts/interfaces/IVoucherSets.sol
0xc7ce90b985cbd9b6d6daab012f2622e437a7101c
Solidity
IVoucherSets
interface IVoucherSets is IERC1155, IERC1155MetadataURI { /** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawi...
burn
function burn( address _account, uint256 _tokenId, uint256 _value ) external;
/** * @notice Burn an amount of tokens with the given ID * @dev ERC-1155 * @param _account Account which owns the token * @param _tokenId ID of the token * @param _value Amount of the token */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 1402, 1511 ] }
28,980
VoucherSets
contracts/interfaces/IVoucherSets.sol
0xc7ce90b985cbd9b6d6daab012f2622e437a7101c
Solidity
IVoucherSets
interface IVoucherSets is IERC1155, IERC1155MetadataURI { /** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawi...
setVoucherKernelAddress
function setVoucherKernelAddress(address _voucherKernelAddress) external;
/** * @notice Set the address of the VoucherKernel contract * @param _voucherKernelAddress The address of the Voucher Kernel contract */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 1669, 1746 ] }
28,981
VoucherSets
contracts/interfaces/IVoucherSets.sol
0xc7ce90b985cbd9b6d6daab012f2622e437a7101c
Solidity
IVoucherSets
interface IVoucherSets is IERC1155, IERC1155MetadataURI { /** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawi...
setCashierAddress
function setCashierAddress(address _cashierAddress) external;
/** * @notice Set the address of the Cashier contract * @param _cashierAddress The address of the Cashier contract */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 1887, 1952 ] }
28,982
VoucherSets
contracts/interfaces/IVoucherSets.sol
0xc7ce90b985cbd9b6d6daab012f2622e437a7101c
Solidity
IVoucherSets
interface IVoucherSets is IERC1155, IERC1155MetadataURI { /** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawi...
getVoucherKernelAddress
function getVoucherKernelAddress() external view returns (address);
/** * @notice Get the address of Voucher Kernel contract * @return Address of Voucher Kernel contract */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 2078, 2149 ] }
28,983
VoucherSets
contracts/interfaces/IVoucherSets.sol
0xc7ce90b985cbd9b6d6daab012f2622e437a7101c
Solidity
IVoucherSets
interface IVoucherSets is IERC1155, IERC1155MetadataURI { /** * @notice Pause the Cashier && the Voucher Kernel contracts in case of emergency. * All functions related to creating new batch, requestVoucher or withdraw will be paused, hence cannot be executed. * There is special function for withdrawi...
getCashierAddress
function getCashierAddress() external view returns (address);
/** * @notice Get the address of Cashier contract * @return Address of Cashier address */
NatSpecMultiLine
v0.7.6+commit.7338295f
{ "func_code_index": [ 2260, 2325 ] }
28,984
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
Wolk
contract Wolk is ERC20Token { // TOKEN INFO string public constant name = "Wolk Protocol Token"; string public constant symbol = "WOLK"; uint256 public constant decimals = 18; // RESERVE uint256 public reserveBalance = 0; uint16 public constant percentageETHReserve = 20; ...
wolkGenesis
function wolkGenesis(uint256 _startBlock, uint256 _endBlock, address _wolkWallet) onlyOwner returns (bool success){ require( (totalTokens < 1) && (!settlers[msg.sender]) && (_endBlock > _startBlock) ); start_block = _startBlock; end_block = _endBlock; multisigWallet = _wolkWallet; settlers[msg....
// @param _startBlock // @param _endBlock // @param _wolkWallet // @return success // @dev Wolk Genesis Event [only accessible by Contract Owner]
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 1432, 1821 ] }
28,985
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
Wolk
contract Wolk is ERC20Token { // TOKEN INFO string public constant name = "Wolk Protocol Token"; string public constant symbol = "WOLK"; uint256 public constant decimals = 18; // RESERVE uint256 public reserveBalance = 0; uint16 public constant percentageETHReserve = 20; ...
changeOwner
function changeOwner(address _newOwner) onlyOwner returns (bool success){ owner = _newOwner; settlers[_newOwner] = true; return true; }
// @param _newOwner // @return success // @dev Transfering Contract Ownership. [only accessible by current Contract Owner]
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 1962, 2134 ] }
28,986
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
Wolk
contract Wolk is ERC20Token { // TOKEN INFO string public constant name = "Wolk Protocol Token"; string public constant symbol = "WOLK"; uint256 public constant decimals = 18; // RESERVE uint256 public reserveBalance = 0; uint16 public constant percentageETHReserve = 20; ...
tokenGenerationEvent
function tokenGenerationEvent() payable external { require(!saleCompleted); require( (block.number >= start_block) && (block.number <= end_block) ); uint256 tokens = safeMul(msg.value, 5*10**9); //exchange rate uint256 checkedSupply = safeAdd(totalTokens, tokens); require(checkedSupply <= token...
// @dev Token Generation Event for Wolk Protocol Token. TGE Participant send Eth into this func in exchange of Wolk Protocol Token
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 2273, 2900 ] }
28,987
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
Wolk
contract Wolk is ERC20Token { // TOKEN INFO string public constant name = "Wolk Protocol Token"; string public constant symbol = "WOLK"; uint256 public constant decimals = 18; // RESERVE uint256 public reserveBalance = 0; uint16 public constant percentageETHReserve = 20; ...
refund
function refund() external { require( (contribution[msg.sender] > 0) && (!saleCompleted) && (totalTokens < tokenGenerationMin) && (block.number > end_block) ); uint256 tokenBalance = balances[msg.sender]; uint256 refundBalance = contribution[msg.sender]; balances[msg.sender] = 0; contribution[m...
// @dev If Token Generation Minimum is Not Met, TGE Participants can call this func and request for refund
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 3015, 3584 ] }
28,988
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
Wolk
contract Wolk is ERC20Token { // TOKEN INFO string public constant name = "Wolk Protocol Token"; string public constant symbol = "WOLK"; uint256 public constant decimals = 18; // RESERVE uint256 public reserveBalance = 0; uint16 public constant percentageETHReserve = 20; ...
finalize
function finalize() onlyOwner { require( (!saleCompleted) && (totalTokens >= tokenGenerationMin) ); saleCompleted = true; end_block = block.number; reserveBalance = safeDiv(safeMul(this.balance, percentageETHReserve), 100); var withdrawalBalance = safeSub(this.balance, reserveBalance); msg...
// @dev Finalizing the Token Generation Event. 20% of Eth will be kept in contract to provide liquidity
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 3696, 4088 ] }
28,989
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
setBurnRate
function setBurnRate(uint256 _burnBasisPoints) onlyOwner returns (bool success) { require( (_burnBasisPoints > 0) && (_burnBasisPoints <= 1000) ); burnBasisPoints = _burnBasisPoints; return true; }
// @param _burnBasisPoints // @return success // @dev Set BurnRate on Wolk Protocol -- only Wolk Foundation can set this, affects Service Provider settleBuyer
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 1015, 1249 ] }
28,990
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
setServiceFee
function setServiceFee(address _serviceProvider, uint256 _feeBasisPoints) onlyOwner returns (bool success) { if ( _feeBasisPoints <= 0 || _feeBasisPoints > 4000){ // revoke Settler privilege settlers[_serviceProvider] = false; feeBasisPoints[_serviceProvider] = 0; return false; ...
// @param _serviceProvider // @param _feeBasisPoints // @return success // @dev Set Service Provider fee -- only Contract Owner can do this, affects Service Provider settleSeller
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 1453, 2041 ] }
28,991
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
checkServiceFee
function checkServiceFee(address _serviceProvider) constant returns (uint256 _feeBasisPoints) { return feeBasisPoints[_serviceProvider]; }
// @param _serviceProvider // @return _feeBasisPoints // @dev Check service ee (in BP) for a given provider
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 2168, 2325 ] }
28,992
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
settleBuyer
function settleBuyer(address _buyer, uint256 _value) onlySettler returns (bool success) { require( (burnBasisPoints > 0) && (burnBasisPoints <= 1000) && authorized[_buyer][msg.sender] ); // Buyer must authorize Service Provider if ( balances[_buyer] >= _value && _value > 0) { var burnCap = safeDiv(s...
// @param _buyer // @param _value // @return success // @dev Service Provider Settlement with Buyer: a small percent is burnt (set in setBurnRate, stored in burnBasisPoints) when funds are transferred from buyer to Service Provider [only accessible by settlers]
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 2612, 3502 ] }
28,993
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
settleSeller
function settleSeller(address _seller, uint256 _value) onlySettler returns (bool success) { // Service Providers have a % fee for Sellers (e.g. 20%) var serviceProviderBP = feeBasisPoints[msg.sender]; require( (serviceProviderBP > 0) && (serviceProviderBP <= 4000) ); if (balances[msg.sender] >= _val...
// @param _seller // @param _value // @return success // @dev Service Provider Settlement with Seller: a small percent is kept by Service Provider (set in setServiceFee, stored in feeBasisPoints) when funds are transferred from Service Provider to seller [only accessible by settlers]
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 3812, 4544 ] }
28,994
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
authorizeProvider
function authorizeProvider(address _providerToAdd) returns (bool success) { require(settlers[_providerToAdd]); authorized[msg.sender][_providerToAdd] = true; AuthorizeServiceProvider(msg.sender, _providerToAdd); return true; }
// @param _providerToAdd // @return success // @dev Buyer authorizes the Service Provider (to call settleBuyer). For security reason, _providerToAdd needs to be whitelisted by Wolk Foundation first
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 4760, 5032 ] }
28,995
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
deauthorizeProvider
function deauthorizeProvider(address _providerToRemove) returns (bool success) { authorized[msg.sender][_providerToRemove] = false; DeauthorizeServiceProvider(msg.sender, _providerToRemove); return true; }
// @param _providerToRemove // @return success // @dev Buyer deauthorizes the Service Provider (from calling settleBuyer)
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 5172, 5414 ] }
28,996
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
checkAuthorization
function checkAuthorization(address _owner, address _serviceProvider) constant returns (bool authorizationStatus) { return authorized[_owner][_serviceProvider]; }
// @param _owner // @param _serviceProvider // @return authorizationStatus // @dev Check authorization between account and Service Provider
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 5577, 5758 ] }
28,997
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
grantService
function grantService(address _owner, address _providerToAdd) onlyOwner returns (bool authorizationStatus) { var isPreauthorized = authorized[_owner][msg.sender]; if (isPreauthorized && settlers[_providerToAdd] ) { authorized[_owner][_providerToAdd] = true; AuthorizeServiceProvider(msg.sende...
// @param _owner // @param _providerToAdd // @return authorizationStatus // @dev Grant authorization between account and Service Provider on buyers' behalf [only accessible by Contract Owner] // @note Explicit permission from balance owner MUST be obtained beforehand
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 6054, 6501 ] }
28,998
WolkExchange
WolkExchange.sol
0x9c18a41b38545bcec4344afd50dac9c0d9a5524c
Solidity
WolkProtocol
contract WolkProtocol is Wolk { // WOLK NETWORK PROTOCOL uint256 public burnBasisPoints = 500; // Burn rate (in BP) when Service Provider withdraws from data buyers' accounts mapping (address => mapping (address => bool)) authorized; // holds which accounts have approved which Service Providers m...
removeService
function removeService(address _owner, address _providerToRemove) onlyOwner returns (bool authorizationStatus) { authorized[_owner][_providerToRemove] = false; DeauthorizeServiceProvider(_owner, _providerToRemove); return true; }
// @param _owner // @param _providerToRemove // @return authorization_status // @dev Revoke authorization between account and Service Provider on buyers' behalf [only accessible by Contract Owner] // @note Explicit permission from balance owner are NOT required for disabling ill-intent Service Provider
LineComment
v0.4.13+commit.fb4cb1a
bzzr://8731e89f25865fe44f68b5fb892da37debb9504ae05a41204badcd2c31765c7c
{ "func_code_index": [ 6833, 7099 ] }
28,999