Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 24 from a total of 24 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Make Installment | 20754626 | 75 days ago | IN | 0 ETH | 0.00018136 | ||||
Make Installment | 16526165 | 668 days ago | IN | 0 ETH | 0.00112102 | ||||
Make Installment | 15197998 | 860 days ago | IN | 0 ETH | 0.00062345 | ||||
Make Installment | 15127206 | 871 days ago | IN | 0 ETH | 0.00122485 | ||||
Make Installment | 15087103 | 877 days ago | IN | 0 ETH | 0.00298811 | ||||
Make Installment | 14453690 | 980 days ago | IN | 0 ETH | 0.00396418 | ||||
Make Installment | 14371264 | 993 days ago | IN | 0 ETH | 0.00146141 | ||||
Make Installment | 14273047 | 1009 days ago | IN | 0 ETH | 0.00491116 | ||||
Make Installment | 14138322 | 1029 days ago | IN | 0 ETH | 0.00633044 | ||||
Make Installment | 14119837 | 1032 days ago | IN | 0 ETH | 0.01226997 | ||||
Make Installment | 13958267 | 1057 days ago | IN | 0 ETH | 0.00607353 | ||||
Make Installment | 13683208 | 1100 days ago | IN | 0 ETH | 0.00726212 | ||||
Make Installment | 13567021 | 1119 days ago | IN | 0 ETH | 0.00746869 | ||||
Make Installment | 13378502 | 1148 days ago | IN | 0 ETH | 0.01005825 | ||||
Make Installment | 13299017 | 1161 days ago | IN | 0 ETH | 0.00657145 | ||||
Make Installment | 13210801 | 1174 days ago | IN | 0 ETH | 0.004613 | ||||
Make Installment | 13147014 | 1184 days ago | IN | 0 ETH | 0.01005743 | ||||
Make Installment | 13069182 | 1196 days ago | IN | 0 ETH | 0.00315782 | ||||
Make Installment | 13027661 | 1202 days ago | IN | 0 ETH | 0.00340419 | ||||
Make Installment | 12932780 | 1217 days ago | IN | 0 ETH | 0.00285861 | ||||
Make Installment | 12901170 | 1222 days ago | IN | 0 ETH | 0.00192539 | ||||
Make Installment | 12731648 | 1249 days ago | IN | 0 ETH | 0.00228492 | ||||
Transfer Ownersh... | 12368249 | 1305 days ago | IN | 0 ETH | 0.00231684 | ||||
Pre Initialize | 12368143 | 1305 days ago | IN | 0 ETH | 0.01355474 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Distribution
Compiler Version
v0.5.12+commit.7709ece9
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.5.12; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/utils/Address.sol"; import "./Token/OilerToken.sol"; import "./IDistribution.sol"; import "./IMultipleDistribution.sol"; /// @dev Distributes STAKE tokens. contract Distribution is Ownable, IDistribution { using SafeMath for uint256; using Address for address; /// @dev Emits when `preInitialize` method has been called. /// @param token The address of ERC677MultiBridgeToken. /// @param caller The address of the caller. event PreInitialized(address token, address caller); /// @dev Emits when `initialize` method has been called. /// @param caller The address of the caller. event Initialized(address caller); /// @dev Emits when an installment for the specified pool has been made. /// @param pool The index of the pool. /// @param value The installment value. /// @param caller The address of the caller. event InstallmentMade(uint8 indexed pool, uint256 value, address caller); /// @dev Emits when the pool address was changed. /// @param pool The index of the pool. /// @param oldAddress Old address. /// @param newAddress New address. event PoolAddressChanged(uint8 indexed pool, address oldAddress, address newAddress); /// @dev The instance of ERC677MultiBridgeToken. OilerToken public token; uint8 public constant ECOSYSTEM_FUND = 1; uint8 public constant TEAM_FUND = 2; uint8 public constant PRIVATE_OFFERING = 3; uint8 public constant ADVISORS_REWARD = 4; uint8 public constant FOUNDATION_REWARD = 5; uint8 public constant LIQUIDITY_FUND = 6; /// @dev Pool address. mapping (uint8 => address) public poolAddress; /// @dev Pool total amount of tokens. mapping (uint8 => uint256) public stake; /// @dev Amount of remaining tokens to distribute for the pool. mapping (uint8 => uint256) public tokensLeft; /// @dev Pool cliff period (in seconds). mapping (uint8 => uint256) public cliff; /// @dev Total number of installments for the pool. mapping (uint8 => uint256) public numberOfInstallments; /// @dev Number of installments that were made. mapping (uint8 => uint256) public numberOfInstallmentsMade; /// @dev The value of one-time installment for the pool. mapping (uint8 => uint256) public installmentValue; /// @dev The value to transfer to the pool at cliff. mapping (uint8 => uint256) public valueAtCliff; /// @dev Boolean variable that contains whether the value for the pool at cliff was paid or not. mapping (uint8 => bool) public wasValueAtCliffPaid; /// @dev Boolean variable that contains whether all installments for the pool were made or not. mapping (uint8 => bool) public installmentsEnded; /// @dev The total token supply. uint256 constant public supply = 100_000_000 ether; // `ether` is used to indicate the token has 18 decimals /// @dev The timestamp of the distribution start. uint256 public distributionStartTimestamp; /// @dev The timestamp of pre-initialization. uint256 public preInitializationTimestamp; /// @dev Boolean variable that indicates whether the contract was pre-initialized. bool public isPreInitialized = false; /// @dev Boolean variable that indicates whether the contract was initialized. bool public isInitialized = false; /// @dev Checks that the contract is initialized. modifier initialized() { require(isInitialized, "not initialized"); _; } /// @dev Checks that the installments for the given pool are started and are not finished already. /// @param _pool The index of the pool. modifier active(uint8 _pool) { // Note that the timestamp can have a 900-second error: // https://github.com/ethereum/wiki/blob/c02254611f218f43cbb07517ca8e5d00fd6d6d75/Block-Protocol-2.0.md require( // solium-disable-next-line security/no-block-members _now() >= distributionStartTimestamp.add(cliff[_pool]) && !installmentsEnded[_pool], "installments are not active for this pool" ); _; } /// @dev Sets up constants and pools addresses that are used in distribution. /// @param _ecosystemFundAddress The address of the Ecosystem Fund. /// @param _teamFundAddress The address of the Team Fund. /// @param _privateOfferingAddress The address of the Private Offering contract. /// @param _advisorsRewardAddress The address of the Advisors Reward contract. /// @param _foundationAddress The address of the Foundation Reward. /// @param _liquidityFundAddress The address of the Liquidity Fund. constructor( address _ecosystemFundAddress, address _teamFundAddress, address _privateOfferingAddress, address _advisorsRewardAddress, address _foundationAddress, address _liquidityFundAddress ) public { // validate provided addresses require( _privateOfferingAddress.isContract() && _advisorsRewardAddress.isContract(), "not a contract address" ); _validateAddress(_ecosystemFundAddress); _validateAddress(_teamFundAddress); _validateAddress(_foundationAddress); _validateAddress(_liquidityFundAddress); poolAddress[ECOSYSTEM_FUND] = _ecosystemFundAddress; poolAddress[TEAM_FUND] = _teamFundAddress; poolAddress[PRIVATE_OFFERING] = _privateOfferingAddress; poolAddress[ADVISORS_REWARD] = _advisorsRewardAddress; poolAddress[FOUNDATION_REWARD] = _foundationAddress; poolAddress[LIQUIDITY_FUND] = _liquidityFundAddress; // initialize token amounts. `ether` is used to indicate the token has 18 decimals stake[ECOSYSTEM_FUND] = 20_000_000 ether; stake[TEAM_FUND] = 12_500_000 ether; stake[PRIVATE_OFFERING] = IMultipleDistribution(poolAddress[PRIVATE_OFFERING]).poolStake(); stake[ADVISORS_REWARD] = IMultipleDistribution(poolAddress[ADVISORS_REWARD]).poolStake(); stake[FOUNDATION_REWARD] = 36_812_232 ether; stake[LIQUIDITY_FUND] = 10_000_000 ether; require( stake[ECOSYSTEM_FUND] // solium-disable-line operator-whitespace .add(stake[TEAM_FUND]) .add(stake[PRIVATE_OFFERING]) .add(stake[ADVISORS_REWARD]) .add(stake[FOUNDATION_REWARD]) .add(stake[LIQUIDITY_FUND]) == supply, "wrong sum of pools stakes" ); tokensLeft[ECOSYSTEM_FUND] = stake[ECOSYSTEM_FUND]; tokensLeft[TEAM_FUND] = stake[TEAM_FUND]; tokensLeft[PRIVATE_OFFERING] = stake[PRIVATE_OFFERING]; tokensLeft[ADVISORS_REWARD] = stake[ADVISORS_REWARD]; tokensLeft[FOUNDATION_REWARD] = stake[FOUNDATION_REWARD]; tokensLeft[LIQUIDITY_FUND] = stake[LIQUIDITY_FUND]; valueAtCliff[ECOSYSTEM_FUND] = stake[ECOSYSTEM_FUND].mul(75).div(1000); // 7.5% unlocked at cliff (day 0) valueAtCliff[PRIVATE_OFFERING] = 0; // No additional tranche at cliff - just installments valueAtCliff[ADVISORS_REWARD] = stake[ADVISORS_REWARD].mul(20).div(100); // 20% unlocked at cliff valueAtCliff[FOUNDATION_REWARD] = stake[FOUNDATION_REWARD].mul(20).div(100); // 20% unlocked at cliff valueAtCliff[TEAM_FUND] = stake[TEAM_FUND].mul(10).div(100); // 10% unlocked at cliff cliff[ECOSYSTEM_FUND] = 0 days; // unlock of the cliff tranche and start of installments unlocking cliff[PRIVATE_OFFERING] = 44 days; // unlock of the cliff tranche and start of installments unlocking cliff[ADVISORS_REWARD] = 180 days; // unlock of the cliff tranche and start of installments unlocking cliff[FOUNDATION_REWARD] = 360 days; // unlock of the cliff tranche and start of installments unlocking cliff[TEAM_FUND] = 270 days; // unlock of the cliff tranche and start of installments unlocking numberOfInstallments[ECOSYSTEM_FUND] = 810; // days for the rest of installments after cliff numberOfInstallments[PRIVATE_OFFERING] = 270; // days for the rest of installments after cliff numberOfInstallments[ADVISORS_REWARD] = 270; // days for the rest of installments after cliff numberOfInstallments[FOUNDATION_REWARD] = 360; // days for the rest of installments after cliff numberOfInstallments[TEAM_FUND] = 720; // days for the rest of installments after cliff installmentValue[ECOSYSTEM_FUND] = _calculateInstallmentValue(ECOSYSTEM_FUND); installmentValue[PRIVATE_OFFERING] = _calculateInstallmentValue( PRIVATE_OFFERING, stake[PRIVATE_OFFERING].mul(25).div(100) // 25% will be distributed at pre-initializing and 0 at cliff, then installments ); installmentValue[ADVISORS_REWARD] = _calculateInstallmentValue(ADVISORS_REWARD); installmentValue[FOUNDATION_REWARD] = _calculateInstallmentValue(FOUNDATION_REWARD); installmentValue[TEAM_FUND] = _calculateInstallmentValue(TEAM_FUND); } /// @dev Pre-initializes the contract after the token is created. /// Distributes tokens for Team Fund, Liquidity Fund, and part of Private Offering. /// @param _tokenAddress The address of the STAKE token contract. function preInitialize(address _tokenAddress) external onlyOwner { require(!isPreInitialized, "already pre-initialized"); token = OilerToken(_tokenAddress); uint256 balance = token.balanceOf(address(this)); require(balance == supply, "wrong contract balance"); preInitializationTimestamp = _now(); // solium-disable-line security/no-block-members isPreInitialized = true; IMultipleDistribution(poolAddress[PRIVATE_OFFERING]).initialize(_tokenAddress); IMultipleDistribution(poolAddress[ADVISORS_REWARD]).initialize(_tokenAddress); uint256 privateOfferingPrerelease = stake[PRIVATE_OFFERING].mul(25).div(100); // 25% token.transferDistribution(poolAddress[LIQUIDITY_FUND], stake[LIQUIDITY_FUND]); token.transfer(poolAddress[PRIVATE_OFFERING], privateOfferingPrerelease); tokensLeft[PRIVATE_OFFERING] = tokensLeft[PRIVATE_OFFERING].sub(privateOfferingPrerelease); tokensLeft[LIQUIDITY_FUND] = tokensLeft[LIQUIDITY_FUND].sub(stake[LIQUIDITY_FUND]); emit PreInitialized(_tokenAddress, msg.sender); emit InstallmentMade(PRIVATE_OFFERING, privateOfferingPrerelease, msg.sender); emit InstallmentMade(LIQUIDITY_FUND, stake[LIQUIDITY_FUND], msg.sender); } /// @dev Initializes token distribution. function initialize() external { require(isPreInitialized, "not pre-initialized"); require(!isInitialized, "already initialized"); if (_now().sub(preInitializationTimestamp) < 90 days) { // solium-disable-line security/no-block-members require(isOwner(), "for now only owner can call this method"); } // Note that the timestamp can have a 900-second error: // https://github.com/ethereum/wiki/blob/c02254611f218f43cbb07517ca8e5d00fd6d6d75/Block-Protocol-2.0.md distributionStartTimestamp = _now(); // solium-disable-line security/no-block-members isInitialized = true; emit Initialized(msg.sender); } /// @dev Changes the address of the specified pool. /// @param _pool The index of the pool (only ECOSYSTEM_FUND or FOUNDATION_REWARD are allowed). /// @param _newAddress The new address for the change. function changePoolAddress(uint8 _pool, address _newAddress) external { require(_pool == ECOSYSTEM_FUND || _pool == FOUNDATION_REWARD, "wrong pool"); require(msg.sender == poolAddress[_pool], "not authorized"); _validateAddress(_newAddress); emit PoolAddressChanged(_pool, poolAddress[_pool], _newAddress); poolAddress[_pool] = _newAddress; } /// @dev Makes an installment for one of the following pools: /// Team Fund, Private Offering, Advisors Reward, Ecosystem Fund, Foundation Reward. /// @param _pool The index of the pool. function makeInstallment(uint8 _pool) public initialized active(_pool) { require( _pool == TEAM_FUND || _pool == PRIVATE_OFFERING || _pool == ADVISORS_REWARD || _pool == ECOSYSTEM_FUND || _pool == FOUNDATION_REWARD, "wrong pool" ); uint256 value = 0; if (!wasValueAtCliffPaid[_pool]) { value = valueAtCliff[_pool]; wasValueAtCliffPaid[_pool] = true; } uint256 availableNumberOfInstallments = _calculateNumberOfAvailableInstallments(_pool); value = value.add(installmentValue[_pool].mul(availableNumberOfInstallments)); require(value > 0, "no installments available"); uint256 remainder = _updatePoolData(_pool, value, availableNumberOfInstallments); value = value.add(remainder); if (_pool == PRIVATE_OFFERING || _pool == ADVISORS_REWARD) { token.transfer(poolAddress[_pool], value); } else { token.transferDistribution(poolAddress[_pool], value); } emit InstallmentMade(_pool, value, msg.sender); } /// @dev This method is called after the STAKE tokens are transferred to this contract. function onTokenTransfer(address, uint256, bytes memory) public pure returns (bool) { revert("sending tokens to this contract is not allowed"); } /// @dev The removed implementation of the ownership renouncing. function renounceOwnership() public onlyOwner { revert("not implemented"); } function _now() internal view returns (uint256) { return now; // solium-disable-line security/no-block-members } /// @dev Updates the given pool data after each installment: /// the remaining number of tokens, /// the number of made installments. /// If the last installment are done and the tokens remained /// then transfers them to the pool and marks that all installments for the given pool are made. /// @param _pool The index of the pool. /// @param _value Current installment value. /// @param _currentNumberOfInstallments Number of installment that are made. function _updatePoolData( uint8 _pool, uint256 _value, uint256 _currentNumberOfInstallments ) internal returns (uint256) { uint256 remainder = 0; tokensLeft[_pool] = tokensLeft[_pool].sub(_value); numberOfInstallmentsMade[_pool] = numberOfInstallmentsMade[_pool].add(_currentNumberOfInstallments); if (numberOfInstallmentsMade[_pool] >= numberOfInstallments[_pool]) { if (tokensLeft[_pool] > 0) { remainder = tokensLeft[_pool]; tokensLeft[_pool] = 0; } _endInstallment(_pool); } return remainder; } /// @dev Marks that all installments for the given pool are made. /// @param _pool The index of the pool. function _endInstallment(uint8 _pool) internal { installmentsEnded[_pool] = true; } /// @dev Calculates the value of the installment for 1 day for the given pool. /// @param _pool The index of the pool. /// @param _valueAtCliff Custom value to distribute at cliff. function _calculateInstallmentValue( uint8 _pool, uint256 _valueAtCliff ) internal view returns (uint256) { return stake[_pool].sub(_valueAtCliff).div(numberOfInstallments[_pool]); } /// @dev Calculates the value of the installment for 1 day for the given pool. /// @param _pool The index of the pool. function _calculateInstallmentValue(uint8 _pool) internal view returns (uint256) { return _calculateInstallmentValue(_pool, valueAtCliff[_pool]); } /// @dev Calculates the number of available installments for the given pool. /// @param _pool The index of the pool. /// @return The number of available installments. function _calculateNumberOfAvailableInstallments( uint8 _pool ) internal view returns ( uint256 availableNumberOfInstallments ) { uint256 paidDays = numberOfInstallmentsMade[_pool].mul(1 days); uint256 lastTimestamp = distributionStartTimestamp.add(cliff[_pool]).add(paidDays); // solium-disable-next-line security/no-block-members availableNumberOfInstallments = _now().sub(lastTimestamp).div(1 days); // Note that the timestamp can have a 900-second error: // https://github.com/ethereum/wiki/blob/c02254611f218f43cbb07517ca8e5d00fd6d6d75/Block-Protocol-2.0.md if (numberOfInstallmentsMade[_pool].add(availableNumberOfInstallments) > numberOfInstallments[_pool]) { availableNumberOfInstallments = numberOfInstallments[_pool].sub(numberOfInstallmentsMade[_pool]); } } /// @dev Checks for an empty address. function _validateAddress(address _address) internal pure { if (_address == address(0)) { revert("invalid address"); } } }
pragma solidity 0.5.12; interface IDistribution { function isInitialized() external view returns (bool); function distributionStartTimestamp() external view returns (uint256); function supply() external view returns(uint256); function poolAddress(uint8) external view returns(address); }
pragma solidity 0.5.12; interface IMultipleDistribution { function initialize(address _tokenAddress) external; function poolStake() external view returns (uint256); }
pragma solidity 0.5.12; import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; /** * @dev Implementation of the `IERC20` interface. * * This implementation was taken from * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.3.0/contracts/token/ERC20/ERC20.sol * This differs from the original one only in the definition for the `_balances` * mapping: we made it `internal` instead of `private` since we use the `_balances` * in the `ERC677BridgeToken` child contract to be able to transfer tokens to address(0) * (see its `_superTransfer` function). The original OpenZeppelin implementation * doesn't allow transferring to address(0). * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using `_mint`. * For a generic mechanism see `ERC20Mintable`. * * *For a detailed writeup see our guide [How to implement supply * mechanisms](https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226).* * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an `Approval` event is emitted on calls to `transferFrom`. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard `decreaseAllowance` and `increaseAllowance` * functions have been added to mitigate the well-known issues around setting * allowances. See `IERC20.approve`. */ contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) internal _balances; // CHANGED: not private to write a custom transfer method mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See `IERC20.totalSupply`. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See `IERC20.balanceOf`. */ function balanceOf(address account) public view returns (uint256) { return _balances[account]; } /** * @dev See `IERC20.transfer`. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(msg.sender, recipient, amount); return true; } /** * @dev See `IERC20.allowance`. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See `IERC20.approve`. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public returns (bool) { _approve(msg.sender, spender, value); return true; } /** * @dev See `IERC20.transferFrom`. * * Emits an `Approval` event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of `ERC20`; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `value`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount)); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to `approve` that can be used as a mitigation for * problems described in `IERC20.approve`. * * Emits an `Approval` event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to `approve` that can be used as a mitigation for * problems described in `IERC20.approve`. * * Emits an `Approval` event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue)); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to `transfer`, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a `Transfer` event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a `Transfer` event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destoys `amount` tokens from `account`, reducing the * total supply. * * Emits a `Transfer` event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 value) internal { require(account != address(0), "ERC20: burn from the zero address"); _totalSupply = _totalSupply.sub(value); _balances[account] = _balances[account].sub(value); emit Transfer(account, address(0), value); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an `Approval` event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 value) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = value; emit Approval(owner, spender, value); } /** * @dev Destoys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See `_burn` and `_approve`. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, msg.sender, _allowances[account][msg.sender].sub(amount)); } }
pragma solidity 0.5.12; import "./ERC20.sol"; import "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol"; /** * @title ERC20Permittable * @dev This is ERC20 contract extended by the `permit` function (see EIP712). */ contract ERC20Permittable is ERC20, ERC20Detailed { string public constant version = "1"; // EIP712 niceties bytes32 public DOMAIN_SEPARATOR; // bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address holder,address spender,uint256 nonce,uint256 expiry,bool allowed)"); bytes32 public constant PERMIT_TYPEHASH = 0xea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb; mapping(address => uint256) public nonces; mapping(address => mapping(address => uint256)) public expirations; constructor( string memory _name, string memory _symbol, uint8 _decimals ) ERC20Detailed(_name, _symbol, _decimals) public { uint256 chainId = 0; assembly { chainId := chainid } DOMAIN_SEPARATOR = keccak256(abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(_name)), keccak256(bytes(version)), chainId, address(this) )); } /// @dev transferFrom in this contract works in a slightly different form than the generic /// transferFrom function. This contract allows for "unlimited approval". /// Should the user approve an address for the maximum uint256 value, /// then that address will have unlimited approval until told otherwise. /// @param _sender The address of the sender. /// @param _recipient The address of the recipient. /// @param _amount The value to transfer. /// @return Success status. function transferFrom(address _sender, address _recipient, uint256 _amount) public returns (bool) { _transfer(_sender, _recipient, _amount); if (_sender != msg.sender) { uint256 allowedAmount = allowance(_sender, msg.sender); if (allowedAmount != uint256(-1)) { // If allowance is limited, adjust it. // In this case `transferFrom` works like the generic _approve(_sender, msg.sender, allowedAmount.sub(_amount)); } else { // If allowance is unlimited by `permit`, `approve`, or `increaseAllowance` // function, don't adjust it. But the expiration date must be empty or in the future. // Note that the expiration timestamp can have a 900-second error: // https://github.com/ethereum/wiki/blob/c02254611f218f43cbb07517ca8e5d00fd6d6d75/Block-Protocol-2.0.md require( // solium-disable-next-line security/no-block-members expirations[_sender][msg.sender] == 0 || expirations[_sender][msg.sender] >= _now(), "expiry is in the past" ); } } else { // If `_sender` is `msg.sender`, // the function works just like `transfer()` } return true; } /// @dev An alias for `transfer` function. /// @param _to The address of the recipient. /// @param _amount The value to transfer. function push(address _to, uint256 _amount) public { transferFrom(msg.sender, _to, _amount); } /// @dev Makes a request to transfer the specified amount /// from the specified address to the caller's address. /// @param _from The address of the holder. /// @param _amount The value to transfer. function pull(address _from, uint256 _amount) public { transferFrom(_from, msg.sender, _amount); } /// @dev An alias for `transferFrom` function. /// @param _from The address of the sender. /// @param _to The address of the recipient. /// @param _amount The value to transfer. function move(address _from, address _to, uint256 _amount) public { transferFrom(_from, _to, _amount); } /// @dev Allows to spend holder's unlimited amount by the specified spender. /// The function can be called by anyone, but requires having allowance parameters /// signed by the holder according to EIP712. /// @param _holder The holder's address. /// @param _spender The spender's address. /// @param _nonce The nonce taken from `nonces(_holder)` public getter. /// @param _expiry The allowance expiration date (unix timestamp in UTC). /// Can be zero for no expiration. Forced to zero if `_allowed` is `false`. /// @param _allowed True to enable unlimited allowance for the spender by the holder. False to disable. /// @param _v A final byte of signature (ECDSA component). /// @param _r The first 32 bytes of signature (ECDSA component). /// @param _s The second 32 bytes of signature (ECDSA component). function permit( address _holder, address _spender, uint256 _nonce, uint256 _expiry, bool _allowed, uint8 _v, bytes32 _r, bytes32 _s ) external { require(_expiry == 0 || _now() <= _expiry, "invalid expiry"); bytes32 digest = keccak256(abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode( PERMIT_TYPEHASH, _holder, _spender, _nonce, _expiry, _allowed )) )); require(_holder == ecrecover(digest, _v, _r, _s), "invalid signature or parameters"); require(_nonce == nonces[_holder]++, "invalid nonce"); uint256 amount = _allowed ? uint256(-1) : 0; _approve(_holder, _spender, amount); expirations[_holder][_spender] = _allowed ? _expiry : 0; } function _now() internal view returns(uint256) { return now; } }
pragma solidity 0.5.12; import "openzeppelin-solidity/contracts/utils/Address.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol"; import "./ERC20Permittable.sol"; import "./Sacrifice.sol"; import "../IDistribution.sol"; // This is Vesting token // // We used xDAI vesting implementation: // https://github.com/xdaichain/stake-token/blob/master/contracts/Token/ERC677BridgeToken.sol // // Stripping it of any Bridges and other stuff contract OilerToken is Ownable, ERC20Permittable { using SafeERC20 for ERC20; using Address for address; /// @dev Distribution contract address. address public distributionAddress; /// @dev The PrivateOffering contract address. address public privateOfferingDistributionAddress; /// @dev The AdvisorsReward contract address. address public advisorsRewardDistributionAddress; /// @dev Mint event. /// @param to To address. /// @param amount Minted value. event Mint(address indexed to, uint256 amount); /// @dev Modified Transfer event with custom data. /// @param from From address. /// @param to To address. /// @param value Transferred value. /// @param data Custom data to call after transfer. event Transfer(address indexed from, address indexed to, uint256 value, bytes data); /// @dev Emits if custom call after transfer fails. /// @param from From address. /// @param to To address. /// @param value Transferred value. event ContractFallbackCallFailed(address from, address to, uint256 value); /// @dev Checks that the recipient address is valid. /// @param _recipient Recipient address. modifier validRecipient(address _recipient) { require(_recipient != address(0) && _recipient != address(this), "not a valid recipient"); _; } /// @dev Creates a token and mints the whole supply for the Distribution contract. /// @param _name Token name. /// @param _symbol Token symbol. /// @param _distributionAddress The address of the deployed Distribution contract. /// @param _privateOfferingDistributionAddress The address of the PrivateOffering contract. /// @param _advisorsRewardDistributionAddress The address of the AdvisorsReward contract. constructor( string memory _name, string memory _symbol, address _distributionAddress, address _privateOfferingDistributionAddress, address _advisorsRewardDistributionAddress ) ERC20Permittable(_name, _symbol, 18) public { require( _distributionAddress.isContract() && _privateOfferingDistributionAddress.isContract() && _advisorsRewardDistributionAddress.isContract(), "not a contract address" ); uint256 supply = IDistribution(_distributionAddress).supply(); require(supply > 0, "the supply must be more than 0"); _mint(_distributionAddress, supply); distributionAddress = _distributionAddress; privateOfferingDistributionAddress = _privateOfferingDistributionAddress; advisorsRewardDistributionAddress = _advisorsRewardDistributionAddress; emit Mint(_distributionAddress, supply); } /// @dev Extends transfer method with callback. /// @param _to The address of the recipient. /// @param _value The value to transfer. /// @param _data Custom data. /// @return Success status. function transferAndCall( address _to, uint256 _value, bytes calldata _data ) external validRecipient(_to) returns (bool) { _superTransfer(_to, _value); emit Transfer(msg.sender, _to, _value, _data); if (_to.isContract()) { require(_contractFallback(msg.sender, _to, _value, _data), "contract call failed"); } return true; } /// @dev Extends transfer method with event when the callback failed. /// @param _to The address of the recipient. /// @param _value The value to transfer. /// @return Success status. function transfer(address _to, uint256 _value) public returns (bool) { _superTransfer(_to, _value); _callAfterTransfer(msg.sender, _to, _value); return true; } /// @dev This is a copy of `transfer` function which can only be called by distribution contracts. /// Made to get rid of `onTokenTransfer` calling to save gas when distributing tokens. /// @param _to The address of the recipient. /// @param _value The value to transfer. /// @return Success status. function transferDistribution(address _to, uint256 _value) public returns (bool) { require( msg.sender == distributionAddress || msg.sender == privateOfferingDistributionAddress || msg.sender == advisorsRewardDistributionAddress, "wrong sender" ); _superTransfer(_to, _value); return true; } /// @dev Extends transferFrom method with event when the callback failed. /// @param _from The address of the sender. /// @param _to The address of the recipient. /// @param _value The value to transfer. /// @return Success status. function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { _superTransferFrom(_from, _to, _value); _callAfterTransfer(_from, _to, _value); return true; } /// @dev If someone sent eth/tokens to the contract mistakenly then the owner can send them back. /// @param _token The token address to transfer. /// @param _to The address of the recipient. function claimTokens(address _token, address payable _to) public onlyOwner validRecipient(_to) { if (_token == address(0)) { uint256 value = address(this).balance; if (!_to.send(value)) { // solium-disable-line security/no-send // We use the `Sacrifice` trick to be sure the coins can be 100% sent to the receiver. // Otherwise, if the receiver is a contract which has a revert in its fallback function, // the sending will fail. (new Sacrifice).value(value)(_to); } } else { ERC20 token = ERC20(_token); uint256 balance = token.balanceOf(address(this)); token.safeTransfer(_to, balance); } } /// @dev The removed implementation of the ownership renouncing. function renounceOwnership() public onlyOwner { revert("not implemented"); } /// @dev Calls transfer method and reverts if it fails. /// @param _to The address of the recipient. /// @param _value The value to transfer. function _superTransfer(address _to, uint256 _value) internal { bool success; if ( msg.sender == distributionAddress || msg.sender == privateOfferingDistributionAddress || msg.sender == advisorsRewardDistributionAddress ) { // Allow sending tokens to `address(0)` by // Distribution, PrivateOffering, or AdvisorsReward contract // since `super.transfer` doesn't allow doing that. // This is needed when the `transferDistribution` function // is called by Distribution, PrivateOffering, AdvisorsReward contract // to send tokens to `address(0)`. // See `Distribution.preInitialize`, `MultipleDistribution.burn` functions. _balances[msg.sender] = _balances[msg.sender].sub(_value); _balances[_to] = _balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); success = true; } else { success = super.transfer(_to, _value); } require(success, "transfer failed"); } /// @dev Calls transferFrom method and reverts if it fails. /// @param _from The address of the sender. /// @param _to The address of the recipient. /// @param _value The value to transfer. function _superTransferFrom(address _from, address _to, uint256 _value) internal { bool success = super.transferFrom(_from, _to, _value); require(success, "transfer failed"); } /// @dev Used by the `transfer` and `transferFrom` functions. /// In case the recipient is a contract, tries to call its `onTokenTransfer` function. /// Reverts if `onTokenTransfer` fails and the recipient is a bridge/distribution contract. /// Emits an event if `onTokenTransfer` fails and the recipient is not a bridge/distribution contract. /// Needed for reverting transfer to a bridge when the bridge doesn't accept tokens due to daily limitations, /// and to revert transfer to a distribution contract (Distribution or MultipleDistribution) /// if the contract doesn't accept tokens due to its limitations defined in `onTokenTransfer` function. /// @param _from The address of the sender. /// @param _to The address of the recipient. /// @param _value The transferred value. function _callAfterTransfer(address _from, address _to, uint256 _value) internal { if (_to.isContract() && !_contractFallback(_from, _to, _value, new bytes(0))) { require(_to != distributionAddress, "you can't transfer to Distribution contract"); require(_to != privateOfferingDistributionAddress, "you can't transfer to PrivateOffering contract"); require(_to != advisorsRewardDistributionAddress, "you can't transfer to AdvisorsReward contract"); emit ContractFallbackCallFailed(_from, _to, _value); } } /// @dev Makes a callback after the transfer of tokens. /// @param _from The address of the sender. /// @param _to The address of the recipient. /// @param _value The transferred value. /// @param _data Custom data. /// @return Success status. function _contractFallback( address _from, address _to, uint256 _value, bytes memory _data ) private returns (bool) { string memory signature = "onTokenTransfer(address,uint256,bytes)"; // solium-disable-next-line security/no-low-level-calls (bool success, ) = _to.call(abi.encodeWithSignature(signature, _from, _value, _data)); return success; } }
pragma solidity 0.5.12; contract Sacrifice { constructor(address payable _recipient) public payable { selfdestruct(_recipient); } }
pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot 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. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; } }
pragma solidity ^0.5.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be aplied to your functions to restrict their use to * the owner. */ contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return msg.sender == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * > Note: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
pragma solidity ^0.5.0; import "./IERC20.sol"; /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. * * > Note that this information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * `IERC20.balanceOf` and `IERC20.transfer`. */ function decimals() public view returns (uint8) { return _decimals; } }
pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see `ERC20Detailed`. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through `transferFrom`. This is * zero by default. * * This value changes when `approve` or `transferFrom` are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * > Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an `Approval` event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to `approve`. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
pragma solidity ^0.5.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
pragma solidity ^0.5.0; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * > It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_ecosystemFundAddress","type":"address"},{"internalType":"address","name":"_teamFundAddress","type":"address"},{"internalType":"address","name":"_privateOfferingAddress","type":"address"},{"internalType":"address","name":"_advisorsRewardAddress","type":"address"},{"internalType":"address","name":"_foundationAddress","type":"address"},{"internalType":"address","name":"_liquidityFundAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"caller","type":"address"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"pool","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"address","name":"caller","type":"address"}],"name":"InstallmentMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"pool","type":"uint8"},{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"PoolAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"caller","type":"address"}],"name":"PreInitialized","type":"event"},{"constant":true,"inputs":[],"name":"ADVISORS_REWARD","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ECOSYSTEM_FUND","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"FOUNDATION_REWARD","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"LIQUIDITY_FUND","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PRIVATE_OFFERING","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"TEAM_FUND","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint8","name":"_pool","type":"uint8"},{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changePoolAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"cliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"distributionStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"installmentValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"installmentsEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isPreInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint8","name":"_pool","type":"uint8"}],"name":"makeInstallment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"numberOfInstallments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"numberOfInstallmentsMade","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onTokenTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"poolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"preInitializationTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"preInitialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"stake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"contract OilerToken","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"tokensLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"valueAtCliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"wasValueAtCliffPaid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600e805461ffff191690553480156200001c57600080fd5b5060405162002ea938038062002ea9833981810160405260c08110156200004257600080fd5b50805160208201516040808401516060850151608086015160a090960151600080546001600160a01b031916331780825594519697959693959294929391926001600160a01b0316917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3620000cf846001600160a01b031662000b5a60201b62001e681760201c565b8015620000f65750620000f6836001600160a01b031662000b5a60201b62001e681760201c565b6200016257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6e6f74206120636f6e7472616374206164647265737300000000000000000000604482015290519081900360640190fd5b62000176866001600160e01b0362000b6016565b6200018a856001600160e01b0362000b6016565b6200019e826001600160e01b0362000b6016565b620001b2816001600160e01b0362000b6016565b7fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b03199081166001600160a01b03898116919091179092557f679795a0195a1b76cdebb7c51d74e058aee92919b8c3389af86ef24535e8a28c805482168884161790557f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c380548216878416179081905560008051602062002e28833981519152805483168785161790557fb98b78633099fa36ed8b8680c4f8092689e1e04080eb9cbb077ca38a14d7e384805483168685161790557f59dd4b18488d12f51eda69757a0ed42a2010c14b564330cc74a06895e60c077b8054909216848416179091556a108b2a2c2802909400000060008051602062002dc8833981519152556a0a56fa5b99019a5c80000060008051602062002da883398151915255600360005260026020908152604080517f5fd6632000000000000000000000000000000000000000000000000000000000815290519290931692635fd663209260048083019392829003018186803b1580156200035357600080fd5b505afa15801562000368573d6000803e3d6000fd5b505050506040513d60208110156200037f57600080fd5b505160008051602062002e8983398151915255600460008190526002602090815260008051602062002e2883398151915254604080517f5fd6632000000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921693635fd6632093828201939092909190829003018186803b1580156200040a57600080fd5b505afa1580156200041f573d6000803e3d6000fd5b505050506040513d60208110156200043657600080fd5b50516003602090815260008051602062002e088339815191528290556a1e734b186d93d87a20000060008051602062002e698339815191528190556a084595161401484a00000060008051602062002de883398151915281905560008051602062002e898339815191525460008051602062002da883398151915254600160005260008051602062002dc8833981519152546a52b7d2dcc80cd2e40000009662000511969495620004fd959094869492938593919284929062001b1862000bd9821b17901c565b62000bd960201b62001b181790919060201c565b146200057e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f77726f6e672073756d206f6620706f6f6c73207374616b657300000000000000604482015290519081900360640190fd5b60008051602062002dc8833981519152547fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0581905560008051602062002da8833981519152547f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a75560008051602062002e89833981519152547f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa05560008051602062002e08833981519152547f1a1e6821cde7d0159c0d293177871e09677b4e42307c7db3ba94f8648a5a050f5560008051602062002e69833981519152547f04cde762ef08b6b6c5ded8e8c4c0b3f4e5c9ad7342c88fcc93681b4588b73f055560008051602062002de8833981519152547fc59312466997bb42aaaf719ece141047820e6b34531e1670dc1852a453648f0f55600160005260036020908152620006f3916103e891620006df9190604b9062001a1a62000c57821b17901c565b62000ccf60201b62001a941790919060201c565b7f92e85d02570a8092d09a6e3a57665bc3815a2699a4074001bf1ccabf660f5a365560007fc575c31fea594a6eb97c8e9d3f9caee4c16218c6ef37e923234c0fe9014a61e7819055600490526003602090815260008051602062002e08833981519152546200077691606491620006df9160149062001a1a62000c57821b17901c565b7f8dc18c4ccfd75f5c815b63770fa542fd953e8fef7e0e44bbdd4913470ce7e9cb5560056000526003602090815260008051602062002e6983398151915254620007d491606491620006df9160149062001a1a62000c57821b17901c565b7f74b05292d1d4b2b48b65261b07099d24244bcb069f138d9a6bfdcf776becac4c5560026000526003602090815260008051602062002da8833981519152546200083291606491620006df91600a9062001a1a62000c57821b17901c565b7f6cde3cea4b3a3fb2488b2808bae7556f4a405e50f65e1794383bc026131b13c35560007f1471eb6eb2c5e789fc3de43f8ce62938c7d1836ec861730447e2ada8fd81017b819055623a02007fa9bc9a3a348c357ba16b37005d7e6b3236198c0e939f4af8c5f19b8deeb8ebc05562ed4e007f3eec716f11ba9e820c81ca75eb978ffb45831ef8b7a53e5e422c26008e1ca6d5556301da9c007f458b30c2d72bfd2c6317304a4594ecbafe5f729d3111b65fdc3a33bd48e5432d55630163f5007f89832631fb3c3307a103ba2c84ab569c64d6182a18893dcd163f0f1c2090733a55600660205261032a7f3e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a315561010e7f75f96ab15d697e93042dc45b5c896c4b27e89bb6eaf39475c5c371cb2513f7d28190557fc5069e24aaadb2addc3e52e868fcf3f4f8acf5a87e24300992fd4540c2a87eed556101687fbfd358e93f18da3ed276c3afdbdba00b8f0b6008a03476a6a86bd6320ee6938b55600290526102d07f8819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace2955620009ea60016001600160e01b0362000d5516565b7fad67d757c34507f157cacfa2e3153e9f260a2244f30428821be7be64587ac55f5560036000819052602081815260008051602062002e898339815191525462000a5e929162000a4f91606491620006df919060199062001a1a62000c57821b17901c565b6001600160e01b0362000d7e16565b600360005260086020527f625b35f5e76f098dd7c3a05b10e2e5e78a4a01228d60c3b143426cdf36d264555562000a9f60046001600160e01b0362000d5516565b600460005260086020527f9321edea6e3be4df59a344b401fab4f888b556fda1f954244cff9204bad624b85562000ae060056001600160e01b0362000d5516565b600560005260086020527f91238f30f286c9a1c6e901c4eda3b214c381c846e3dbe48df95c21488e8e1fdb5562000b2160026001600160e01b0362000d5516565b600260005260086020527f6add646517a5b0f6793cd5891b7937d28a5b2981a5d88ebc7cd776088fea9041555062000e30945050505050565b3b151590565b6001600160a01b03811662000bd657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b50565b60008282018381101562000c4e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b60008262000c685750600062000c51565b8282028284828162000c7657fe5b041462000c4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018062002e486021913960400191505060405180910390fd5b600080821162000d4057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b600082848162000d4c57fe5b04949350505050565b60ff811660009081526009602052604081205462000c519083906001600160e01b0362000d7e16565b60ff8216600090815260066020908152604080832054600383529083205462000c4e92620006df919086906200199e62000db8821b17901c565b60008282111562000e2a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b611f688062000e406000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80638d3df3461161010f578063b2cec8ea116100a2578063bd4b2be911610071578063bd4b2be914610538578063f049f33414610540578063f2fde38b14610560578063fc0c546a14610593576101e5565b8063b2cec8ea146104d0578063b4b598ce146104f0578063b99ef521146104f8578063bac883ef14610518576101e5565b80639972444f116100de5780639972444f146103ad5780639b2d6d77146103cd578063a3df582a14610400578063a4c0ed3614610408576101e5565b80638d3df3461461034c5780638da5cb5b1461036c5780638f32d59b1461039d578063983c44d6146103a5576101e5565b8063392e53cd11610187578063715018a611610156578063715018a6146103145780637af7c0401461031c5780638129fc1c1461033c5780638d3ce69d14610344576101e5565b8063392e53cd146102c457806359791d6d146102cc578063604f2177146102ec578063622c5e451461030c576101e5565b80630f10e06f116101c35780630f10e06f146102765780632755731e14610296578063375a4cab1461029e578063381a4113146102bc576101e5565b8063014a969a146101ea578063047fc9aa1461021e57806304a3922014610238575b600080fd5b61020a6004803603602081101561020057600080fd5b503560ff1661059b565b604080519115158252519081900360200190f35b6102266105b0565b60408051918252519081900360200190f35b6102746004803603604081101561024e57600080fd5b50803560ff16906020013573ffffffffffffffffffffffffffffffffffffffff166105bf565b005b6102266004803603602081101561028c57600080fd5b503560ff166107a0565b6102266107b2565b6102a66107b8565b6040805160ff9092168252519081900360200190f35b61020a6107bd565b61020a6107c6565b610226600480360360208110156102e257600080fd5b503560ff166107d4565b6102266004803603602081101561030257600080fd5b503560ff166107e6565b6102a66107f8565b6102746107fd565b61020a6004803603602081101561033257600080fd5b503560ff166108d7565b6102746108ec565b6102a6610ac1565b6102266004803603602081101561036257600080fd5b503560ff16610ac6565b610374610ad8565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61020a610af4565b6102a6610b12565b610374600480360360208110156103c357600080fd5b503560ff16610b17565b610274600480360360208110156103e357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b3f565b610226611317565b61020a6004803603606081101561041e57600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359181019060608101604082013564010000000081111561045b57600080fd5b82018360208201111561046d57600080fd5b8035906020019184600183028401116401000000008311171561048f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061131d945050505050565b610226600480360360208110156104e657600080fd5b503560ff16611370565b6102a6611382565b6102266004803603602081101561050e57600080fd5b503560ff16611387565b6102746004803603602081101561052e57600080fd5b503560ff16611399565b6102a6611866565b6102266004803603602081101561055657600080fd5b503560ff1661186b565b6102746004803603602081101561057657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661187d565b6103746118fc565b600b6020526000908152604090205460ff1681565b6a52b7d2dcc80cd2e400000081565b60ff8216600114806105d4575060ff82166005145b61063f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f77726f6e6720706f6f6c00000000000000000000000000000000000000000000604482015290519081900360640190fd5b60ff821660009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1633146106d557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6e6f7420617574686f72697a6564000000000000000000000000000000000000604482015290519081900360640190fd5b6106de81611918565b60ff821660008181526002602090815260409182902054825173ffffffffffffffffffffffffffffffffffffffff91821681529085169181019190915281517f09a67390cbf7986a6bb0fcb44307b4844ba258bca3f38599d2b344824df4ba1d929181900390910190a260ff91909116600090815260026020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60056020526000908152604090205481565b600d5481565b600581565b600e5460ff1681565b600e54610100900460ff1681565b60086020526000908152604090205481565b60036020526000908152604090205481565b600481565b610805610af4565b61087057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696d706c656d656e7465640000000000000000000000000000000000604482015290519081900360640190fd5b600a6020526000908152604090205460ff1681565b600e5460ff1661095d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6e6f74207072652d696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b600e54610100900460ff16156109d457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f616c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b6276a7006109f2600d546109e661199a565b9063ffffffff61199e16565b1015610a5557610a00610af4565b610a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180611e6f6027913960400191505060405180910390fd5b610a5d61199a565b600c55600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556040805133815290517f908408e307fc569b417f6cbec5d5a06f44a0a505ac0479b47d421a4b2fd6a1e69181900360200190a1565b600381565b60066020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff16331490565b600181565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b610b47610af4565b610bb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600e5460ff1615610c2457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f616c7265616479207072652d696e697469616c697a6564000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8381169190911791829055604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600093909216916370a0823191602480820192602092909190829003018186803b158015610cc657600080fd5b505afa158015610cda573d6000803e3d6000fd5b505050506040513d6020811015610cf057600080fd5b505190506a52b7d2dcc80cd2e40000008114610d6d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f77726f6e6720636f6e74726163742062616c616e636500000000000000000000604482015290519081900360640190fd5b610d7561199a565b600d55600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556003600090815260026020527f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c354604080517fc4d66de800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301529151919092169263c4d66de8926024808201939182900301818387803b158015610e3e57600080fd5b505af1158015610e52573d6000803e3d6000fd5b50506004600081815260026020527fee60d0579bcffd98e668647d59fec1ff86a7fb340ce572e844f234ae73a6918f54604080517fc4d66de800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89811695820195909552905193909116945063c4d66de893506024808201939182900301818387803b158015610ef357600080fd5b505af1158015610f07573d6000803e3d6000fd5b5050600360008181526020919091527fcbc4e5fb02c3d1de23a9f1e014b4d2ee5aeaea9505df5e855c9210bf472495af54909250610f609150606490610f5490601963ffffffff611a1a16565b9063ffffffff611a9416565b600154600660009081527f59dd4b18488d12f51eda69757a0ed42a2010c14b564330cc74a06895e60c077b54600360209081527fc69056f16cbaa3c616b828e333ab7d3a32310765507f8f58359e99ebb7a885f354604080517f238a3fe100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9485166004820152602481019290925251959650919093169363238a3fe19360448084019491938390030190829087803b15801561102e57600080fd5b505af1158015611042573d6000803e3d6000fd5b505050506040513d602081101561105857600080fd5b505060015460036000908152600260209081527f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c354604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481018790529051919094169363a9059cbb9360448083019493928390030190829087803b15801561110357600080fd5b505af1158015611117573d6000803e3d6000fd5b505050506040513d602081101561112d57600080fd5b5050600360005260046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa05461116b908263ffffffff61199e16565b7f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa05560066000527fc69056f16cbaa3c616b828e333ab7d3a32310765507f8f58359e99ebb7a885f35460046020527fc59312466997bb42aaaf719ece141047820e6b34531e1670dc1852a453648f0f546111ea9163ffffffff61199e16565b6006600052600460209081527fc59312466997bb42aaaf719ece141047820e6b34531e1670dc1852a453648f0f919091556040805173ffffffffffffffffffffffffffffffffffffffff86168152339281019290925280517f20e0b9d27e138a83ff1b3f687932144f5e913aa93855ac36c2611ec1dfae704e9281900390910190a16040805182815233602082015281516003927fa8b65b82b2ff2a955e75c1bfa6a0e92aafb764156295da77a0a4c714f3895c72928290030190a260066000819052600360209081527fc69056f16cbaa3c616b828e333ab7d3a32310765507f8f58359e99ebb7a885f35460408051918252339282019290925281517fa8b65b82b2ff2a955e75c1bfa6a0e92aafb764156295da77a0a4c714f3895c72929181900390910190a2505050565b600c5481565b60006040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180611edd602e913960400191505060405180910390fd5b60096020526000908152604090205481565b600281565b60046020526000908152604090205481565b600e54610100900460ff1661140f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696e697469616c697a65640000000000000000000000000000000000604482015290519081900360640190fd5b60ff8116600090815260056020526040902054600c548291611437919063ffffffff611b1816565b61143f61199a565b1015801561145f575060ff8082166000908152600b602052604090205416155b6114b4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180611f0b6029913960400191505060405180910390fd5b60ff8216600214806114c9575060ff82166003145b806114d7575060ff82166004145b806114e5575060ff82166001145b806114f3575060ff82166005145b61155e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f77726f6e6720706f6f6c00000000000000000000000000000000000000000000604482015290519081900360640190fd5b60ff8083166000908152600a60205260408120549091166115c2575060ff8216600090815260096020908152604080832054600a90925290912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b60006115cd84611b8c565b60ff8516600090815260086020526040902054909150611604906115f7908363ffffffff611a1a16565b839063ffffffff611b1816565b91506000821161167557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6e6f20696e7374616c6c6d656e747320617661696c61626c6500000000000000604482015290519081900360640190fd5b6000611682858484611c76565b9050611694838263ffffffff611b1816565b925060ff8516600314806116ab575060ff85166004145b1561176c5760015460ff861660009081526002602090815260408083205481517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101899052915194169363a9059cbb93604480840194938390030190829087803b15801561173a57600080fd5b505af115801561174e573d6000803e3d6000fd5b505050506040513d602081101561176457600080fd5b506118239050565b60015460ff861660009081526002602090815260408083205481517f238a3fe100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101899052915194169363238a3fe193604480840194938390030190829087803b1580156117f657600080fd5b505af115801561180a573d6000803e3d6000fd5b505050506040513d602081101561182057600080fd5b50505b60408051848152336020820152815160ff8816927fa8b65b82b2ff2a955e75c1bfa6a0e92aafb764156295da77a0a4c714f3895c72928290030190a25050505050565b600681565b60076020526000908152604090205481565b611885610af4565b6118f057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6118f981611d33565b50565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff81166118f957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b4290565b600082821115611a0f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b600082611a2957506000611a14565b82820282848281611a3657fe5b0414611a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611ebc6021913960400191505060405180910390fd5b9392505050565b6000808211611b0457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481611b0f57fe5b04949350505050565b600082820183811015611a8d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60ff81166000908152600760205260408120548190611bb4906201518063ffffffff611a1a16565b60ff8416600090815260056020526040812054600c549293509091611bf0918491611be49163ffffffff611b1816565b9063ffffffff611b1816565b9050611c0562015180610f54836109e661199a565b60ff851660009081526006602090815260408083205460079092529091205491945090611c38908563ffffffff611b1816565b1115611c6f5760ff8416600090815260076020908152604080832054600690925290912054611c6c9163ffffffff61199e16565b92505b5050919050565b60ff83166000908152600460205260408120548190611c9b908563ffffffff61199e16565b60ff8616600090815260046020908152604080832093909355600790522054611cca908463ffffffff611b1816565b60ff861660009081526007602081815260408084208590556006825290922054915211611d2b5760ff851660009081526004602052604090205415611d22575060ff8416600090815260046020526040812080549190555b611d2b85611e2c565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff8116611d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611e966026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60ff166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b3b15159056fe666f72206e6f77206f6e6c79206f776e65722063616e2063616c6c2074686973206d6574686f644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7773656e64696e6720746f6b656e7320746f207468697320636f6e7472616374206973206e6f7420616c6c6f776564696e7374616c6c6d656e747320617265206e6f742061637469766520666f72207468697320706f6f6ca265627a7a7231582089bcdb32c42756314e010c14120f42b5082498c1423640e3ee1c40e770e40ace64736f6c634300050c0032c3a24b0501bd2c13a7e57f2db4369ec4c223447539fc0724a9d55ac4a06ebd4da15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054cc69056f16cbaa3c616b828e333ab7d3a32310765507f8f58359e99ebb7a885f383ec6a1f0257b830b5e016457c9cf1435391bf56cc98f369a58a54fe93772465ee60d0579bcffd98e668647d59fec1ff86a7fb340ce572e844f234ae73a6918f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77405aad32e1adbac89bb7f176e338b8fc6e994ca210c9bb7bdca249b465942250cbc4e5fb02c3d1de23a9f1e014b4d2ee5aeaea9505df5e855c9210bf472495af00000000000000000000000075b51dd46ec4430121f5a5fa6aed7df06f99868f000000000000000000000000eaab5ec0f9dc67d9e2810c02117abb33537a68d80000000000000000000000001d041e3a90da2240ba298b85bcb6c32275e42b99000000000000000000000000a27342a82b0bfee68e366fd84fc517bddeab4ae4000000000000000000000000be25a20497bce2764659e102f8c1bdbdc4d8db5c000000000000000000000000ae2efb7716ab58a56008cbec9514c51c12742205
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80638d3df3461161010f578063b2cec8ea116100a2578063bd4b2be911610071578063bd4b2be914610538578063f049f33414610540578063f2fde38b14610560578063fc0c546a14610593576101e5565b8063b2cec8ea146104d0578063b4b598ce146104f0578063b99ef521146104f8578063bac883ef14610518576101e5565b80639972444f116100de5780639972444f146103ad5780639b2d6d77146103cd578063a3df582a14610400578063a4c0ed3614610408576101e5565b80638d3df3461461034c5780638da5cb5b1461036c5780638f32d59b1461039d578063983c44d6146103a5576101e5565b8063392e53cd11610187578063715018a611610156578063715018a6146103145780637af7c0401461031c5780638129fc1c1461033c5780638d3ce69d14610344576101e5565b8063392e53cd146102c457806359791d6d146102cc578063604f2177146102ec578063622c5e451461030c576101e5565b80630f10e06f116101c35780630f10e06f146102765780632755731e14610296578063375a4cab1461029e578063381a4113146102bc576101e5565b8063014a969a146101ea578063047fc9aa1461021e57806304a3922014610238575b600080fd5b61020a6004803603602081101561020057600080fd5b503560ff1661059b565b604080519115158252519081900360200190f35b6102266105b0565b60408051918252519081900360200190f35b6102746004803603604081101561024e57600080fd5b50803560ff16906020013573ffffffffffffffffffffffffffffffffffffffff166105bf565b005b6102266004803603602081101561028c57600080fd5b503560ff166107a0565b6102266107b2565b6102a66107b8565b6040805160ff9092168252519081900360200190f35b61020a6107bd565b61020a6107c6565b610226600480360360208110156102e257600080fd5b503560ff166107d4565b6102266004803603602081101561030257600080fd5b503560ff166107e6565b6102a66107f8565b6102746107fd565b61020a6004803603602081101561033257600080fd5b503560ff166108d7565b6102746108ec565b6102a6610ac1565b6102266004803603602081101561036257600080fd5b503560ff16610ac6565b610374610ad8565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61020a610af4565b6102a6610b12565b610374600480360360208110156103c357600080fd5b503560ff16610b17565b610274600480360360208110156103e357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b3f565b610226611317565b61020a6004803603606081101561041e57600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359181019060608101604082013564010000000081111561045b57600080fd5b82018360208201111561046d57600080fd5b8035906020019184600183028401116401000000008311171561048f57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061131d945050505050565b610226600480360360208110156104e657600080fd5b503560ff16611370565b6102a6611382565b6102266004803603602081101561050e57600080fd5b503560ff16611387565b6102746004803603602081101561052e57600080fd5b503560ff16611399565b6102a6611866565b6102266004803603602081101561055657600080fd5b503560ff1661186b565b6102746004803603602081101561057657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661187d565b6103746118fc565b600b6020526000908152604090205460ff1681565b6a52b7d2dcc80cd2e400000081565b60ff8216600114806105d4575060ff82166005145b61063f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f77726f6e6720706f6f6c00000000000000000000000000000000000000000000604482015290519081900360640190fd5b60ff821660009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1633146106d557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6e6f7420617574686f72697a6564000000000000000000000000000000000000604482015290519081900360640190fd5b6106de81611918565b60ff821660008181526002602090815260409182902054825173ffffffffffffffffffffffffffffffffffffffff91821681529085169181019190915281517f09a67390cbf7986a6bb0fcb44307b4844ba258bca3f38599d2b344824df4ba1d929181900390910190a260ff91909116600090815260026020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60056020526000908152604090205481565b600d5481565b600581565b600e5460ff1681565b600e54610100900460ff1681565b60086020526000908152604090205481565b60036020526000908152604090205481565b600481565b610805610af4565b61087057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696d706c656d656e7465640000000000000000000000000000000000604482015290519081900360640190fd5b600a6020526000908152604090205460ff1681565b600e5460ff1661095d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6e6f74207072652d696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b600e54610100900460ff16156109d457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f616c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b6276a7006109f2600d546109e661199a565b9063ffffffff61199e16565b1015610a5557610a00610af4565b610a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180611e6f6027913960400191505060405180910390fd5b610a5d61199a565b600c55600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556040805133815290517f908408e307fc569b417f6cbec5d5a06f44a0a505ac0479b47d421a4b2fd6a1e69181900360200190a1565b600381565b60066020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff16331490565b600181565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b610b47610af4565b610bb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600e5460ff1615610c2457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f616c7265616479207072652d696e697469616c697a6564000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8381169190911791829055604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600093909216916370a0823191602480820192602092909190829003018186803b158015610cc657600080fd5b505afa158015610cda573d6000803e3d6000fd5b505050506040513d6020811015610cf057600080fd5b505190506a52b7d2dcc80cd2e40000008114610d6d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f77726f6e6720636f6e74726163742062616c616e636500000000000000000000604482015290519081900360640190fd5b610d7561199a565b600d55600e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556003600090815260026020527f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c354604080517fc4d66de800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301529151919092169263c4d66de8926024808201939182900301818387803b158015610e3e57600080fd5b505af1158015610e52573d6000803e3d6000fd5b50506004600081815260026020527fee60d0579bcffd98e668647d59fec1ff86a7fb340ce572e844f234ae73a6918f54604080517fc4d66de800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89811695820195909552905193909116945063c4d66de893506024808201939182900301818387803b158015610ef357600080fd5b505af1158015610f07573d6000803e3d6000fd5b5050600360008181526020919091527fcbc4e5fb02c3d1de23a9f1e014b4d2ee5aeaea9505df5e855c9210bf472495af54909250610f609150606490610f5490601963ffffffff611a1a16565b9063ffffffff611a9416565b600154600660009081527f59dd4b18488d12f51eda69757a0ed42a2010c14b564330cc74a06895e60c077b54600360209081527fc69056f16cbaa3c616b828e333ab7d3a32310765507f8f58359e99ebb7a885f354604080517f238a3fe100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9485166004820152602481019290925251959650919093169363238a3fe19360448084019491938390030190829087803b15801561102e57600080fd5b505af1158015611042573d6000803e3d6000fd5b505050506040513d602081101561105857600080fd5b505060015460036000908152600260209081527f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c354604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481018790529051919094169363a9059cbb9360448083019493928390030190829087803b15801561110357600080fd5b505af1158015611117573d6000803e3d6000fd5b505050506040513d602081101561112d57600080fd5b5050600360005260046020527f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa05461116b908263ffffffff61199e16565b7f2e174c10e159ea99b867ce3205125c24a42d128804e4070ed6fcc8cc98166aa05560066000527fc69056f16cbaa3c616b828e333ab7d3a32310765507f8f58359e99ebb7a885f35460046020527fc59312466997bb42aaaf719ece141047820e6b34531e1670dc1852a453648f0f546111ea9163ffffffff61199e16565b6006600052600460209081527fc59312466997bb42aaaf719ece141047820e6b34531e1670dc1852a453648f0f919091556040805173ffffffffffffffffffffffffffffffffffffffff86168152339281019290925280517f20e0b9d27e138a83ff1b3f687932144f5e913aa93855ac36c2611ec1dfae704e9281900390910190a16040805182815233602082015281516003927fa8b65b82b2ff2a955e75c1bfa6a0e92aafb764156295da77a0a4c714f3895c72928290030190a260066000819052600360209081527fc69056f16cbaa3c616b828e333ab7d3a32310765507f8f58359e99ebb7a885f35460408051918252339282019290925281517fa8b65b82b2ff2a955e75c1bfa6a0e92aafb764156295da77a0a4c714f3895c72929181900390910190a2505050565b600c5481565b60006040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180611edd602e913960400191505060405180910390fd5b60096020526000908152604090205481565b600281565b60046020526000908152604090205481565b600e54610100900460ff1661140f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6e6f7420696e697469616c697a65640000000000000000000000000000000000604482015290519081900360640190fd5b60ff8116600090815260056020526040902054600c548291611437919063ffffffff611b1816565b61143f61199a565b1015801561145f575060ff8082166000908152600b602052604090205416155b6114b4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180611f0b6029913960400191505060405180910390fd5b60ff8216600214806114c9575060ff82166003145b806114d7575060ff82166004145b806114e5575060ff82166001145b806114f3575060ff82166005145b61155e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f77726f6e6720706f6f6c00000000000000000000000000000000000000000000604482015290519081900360640190fd5b60ff8083166000908152600a60205260408120549091166115c2575060ff8216600090815260096020908152604080832054600a90925290912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555b60006115cd84611b8c565b60ff8516600090815260086020526040902054909150611604906115f7908363ffffffff611a1a16565b839063ffffffff611b1816565b91506000821161167557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6e6f20696e7374616c6c6d656e747320617661696c61626c6500000000000000604482015290519081900360640190fd5b6000611682858484611c76565b9050611694838263ffffffff611b1816565b925060ff8516600314806116ab575060ff85166004145b1561176c5760015460ff861660009081526002602090815260408083205481517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101899052915194169363a9059cbb93604480840194938390030190829087803b15801561173a57600080fd5b505af115801561174e573d6000803e3d6000fd5b505050506040513d602081101561176457600080fd5b506118239050565b60015460ff861660009081526002602090815260408083205481517f238a3fe100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216600482015260248101899052915194169363238a3fe193604480840194938390030190829087803b1580156117f657600080fd5b505af115801561180a573d6000803e3d6000fd5b505050506040513d602081101561182057600080fd5b50505b60408051848152336020820152815160ff8816927fa8b65b82b2ff2a955e75c1bfa6a0e92aafb764156295da77a0a4c714f3895c72928290030190a25050505050565b600681565b60076020526000908152604090205481565b611885610af4565b6118f057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6118f981611d33565b50565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff81166118f957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b4290565b600082821115611a0f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b600082611a2957506000611a14565b82820282848281611a3657fe5b0414611a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611ebc6021913960400191505060405180910390fd5b9392505050565b6000808211611b0457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481611b0f57fe5b04949350505050565b600082820183811015611a8d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60ff81166000908152600760205260408120548190611bb4906201518063ffffffff611a1a16565b60ff8416600090815260056020526040812054600c549293509091611bf0918491611be49163ffffffff611b1816565b9063ffffffff611b1816565b9050611c0562015180610f54836109e661199a565b60ff851660009081526006602090815260408083205460079092529091205491945090611c38908563ffffffff611b1816565b1115611c6f5760ff8416600090815260076020908152604080832054600690925290912054611c6c9163ffffffff61199e16565b92505b5050919050565b60ff83166000908152600460205260408120548190611c9b908563ffffffff61199e16565b60ff8616600090815260046020908152604080832093909355600790522054611cca908463ffffffff611b1816565b60ff861660009081526007602081815260408084208590556006825290922054915211611d2b5760ff851660009081526004602052604090205415611d22575060ff8416600090815260046020526040812080549190555b611d2b85611e2c565b949350505050565b73ffffffffffffffffffffffffffffffffffffffff8116611d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611e966026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60ff166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b3b15159056fe666f72206e6f77206f6e6c79206f776e65722063616e2063616c6c2074686973206d6574686f644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7773656e64696e6720746f6b656e7320746f207468697320636f6e7472616374206973206e6f7420616c6c6f776564696e7374616c6c6d656e747320617265206e6f742061637469766520666f72207468697320706f6f6ca265627a7a7231582089bcdb32c42756314e010c14120f42b5082498c1423640e3ee1c40e770e40ace64736f6c634300050c0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000075b51dd46ec4430121f5a5fa6aed7df06f99868f000000000000000000000000eaab5ec0f9dc67d9e2810c02117abb33537a68d80000000000000000000000001d041e3a90da2240ba298b85bcb6c32275e42b99000000000000000000000000a27342a82b0bfee68e366fd84fc517bddeab4ae4000000000000000000000000be25a20497bce2764659e102f8c1bdbdc4d8db5c000000000000000000000000ae2efb7716ab58a56008cbec9514c51c12742205
-----Decoded View---------------
Arg [0] : _ecosystemFundAddress (address): 0x75B51DD46eC4430121f5a5fA6AeD7dF06F99868f
Arg [1] : _teamFundAddress (address): 0xeAAb5ec0F9DC67D9e2810C02117ABb33537A68d8
Arg [2] : _privateOfferingAddress (address): 0x1d041E3A90da2240Ba298B85bcb6c32275e42B99
Arg [3] : _advisorsRewardAddress (address): 0xa27342A82b0bfeE68e366Fd84FC517BDDEab4aE4
Arg [4] : _foundationAddress (address): 0xbE25a20497bcE2764659e102F8c1BDBdC4D8DB5c
Arg [5] : _liquidityFundAddress (address): 0xAE2EFb7716AB58a56008CBeC9514C51c12742205
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000075b51dd46ec4430121f5a5fa6aed7df06f99868f
Arg [1] : 000000000000000000000000eaab5ec0f9dc67d9e2810c02117abb33537a68d8
Arg [2] : 0000000000000000000000001d041e3a90da2240ba298b85bcb6c32275e42b99
Arg [3] : 000000000000000000000000a27342a82b0bfee68e366fd84fc517bddeab4ae4
Arg [4] : 000000000000000000000000be25a20497bce2764659e102f8c1bdbdc4d8db5c
Arg [5] : 000000000000000000000000ae2efb7716ab58a56008cbec9514c51c12742205
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.