ETH Price: $2,625.13 (+1.54%)
Gas: 1 Gwei

Contract

0x8f540E6d91ce3296824A4E469ff5F01AbF5d700C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Primary79081002019-06-06 21:39:111892 days ago1559857151IN
0x8f540E6d...AbF5d700C
0 ETH0.0005950420
0x6080604079080682019-06-06 21:32:481892 days ago1559856768IN
 Create: BondingVault
0.1 ETH0.0410174220

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
87586362019-10-17 12:52:321759 days ago1571316752
0x8f540E6d...AbF5d700C
0.09016104 ETH
87585902019-10-17 12:41:291759 days ago1571316089
0x8f540E6d...AbF5d700C
0.02769266 ETH
87585872019-10-17 12:39:561759 days ago1571315996
0x8f540E6d...AbF5d700C
0.11398235 ETH
87585722019-10-17 12:34:241759 days ago1571315664
0x8f540E6d...AbF5d700C
0.05411329 ETH
86187552019-09-25 14:56:531781 days ago1569423413
0x8f540E6d...AbF5d700C
0.02 ETH
85898922019-09-21 2:23:061785 days ago1569032586
0x8f540E6d...AbF5d700C
0.015 ETH
84189262019-08-25 10:52:411812 days ago1566730361
0x8f540E6d...AbF5d700C
0.017 ETH
82800492019-08-03 21:06:491834 days ago1564866409
0x8f540E6d...AbF5d700C
0.01505977 ETH
82582522019-07-31 11:53:591837 days ago1564574039
0x8f540E6d...AbF5d700C
0.0011285 ETH
82513242019-07-30 10:03:151838 days ago1564480995
0x8f540E6d...AbF5d700C
0.02 ETH
81805782019-07-19 10:36:221849 days ago1563532582
0x8f540E6d...AbF5d700C
0.00644608 ETH
81805672019-07-19 10:33:371849 days ago1563532417
0x8f540E6d...AbF5d700C
0.015 ETH
81252702019-07-10 19:14:521858 days ago1562786092
0x8f540E6d...AbF5d700C
0.025 ETH
81105912019-07-08 12:28:471860 days ago1562588927
0x8f540E6d...AbF5d700C
0.02 ETH
80193402019-06-24 7:26:141874 days ago1561361174
0x8f540E6d...AbF5d700C
0.015 ETH
80079062019-06-22 12:37:551876 days ago1561207075
0x8f540E6d...AbF5d700C
0.011 ETH
79379552019-06-11 14:02:501887 days ago1560261770
0x8f540E6d...AbF5d700C
0.03 ETH
79204042019-06-08 20:04:191890 days ago1560024259
0x8f540E6d...AbF5d700C
0.04641626 ETH
79203582019-06-08 19:53:131890 days ago1560023593
0x8f540E6d...AbF5d700C
0.023 ETH
79140392019-06-07 20:03:471891 days ago1559937827
0x8f540E6d...AbF5d700C
0.02 ETH
79139652019-06-07 19:47:531891 days ago1559936873
0x8f540E6d...AbF5d700C
0.01 ETH
79082702019-06-06 22:17:481892 days ago1559859468
0x8f540E6d...AbF5d700C
0.003 ETH
79082452019-06-06 22:11:501892 days ago1559859110
0x8f540E6d...AbF5d700C
0.01 ETH
79082042019-06-06 22:00:561892 days ago1559858456
0x8f540E6d...AbF5d700C
0.001 ETH
79080682019-06-06 21:32:481892 days ago1559856768
0x8f540E6d...AbF5d700C
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BondingVault

Compiler Version
v0.5.2+commit.1df8f40c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-10-17
*/

// File: openzeppelin-solidity/contracts/ownership/Secondary.sol

pragma solidity ^0.5.2;

/**
 * @title Secondary
 * @dev A Secondary contract can only be used by its primary account (the one that created it)
 */
contract Secondary {
    address private _primary;

    event PrimaryTransferred(
        address recipient
    );

    /**
     * @dev Sets the primary account to the one that is creating the Secondary contract.
     */
    constructor () internal {
        _primary = msg.sender;
        emit PrimaryTransferred(_primary);
    }

    /**
     * @dev Reverts if called from any account other than the primary.
     */
    modifier onlyPrimary() {
        require(msg.sender == _primary);
        _;
    }

    /**
     * @return the address of the primary.
     */
    function primary() public view returns (address) {
        return _primary;
    }

    /**
     * @dev Transfers contract to a new primary.
     * @param recipient The address of new primary.
     */
    function transferPrimary(address recipient) public onlyPrimary {
        require(recipient != address(0));
        _primary = recipient;
        emit PrimaryTransferred(_primary);
    }
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

pragma solidity ^0.5.2;

/**
 * @title SafeMath
 * @dev Unsigned math operations with safety checks that revert on error
 */
library SafeMath {
    /**
     * @dev Multiplies two unsigned integers, reverts on overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b);

        return c;
    }

    /**
     * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Adds two unsigned integers, reverts on overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);

        return c;
    }

    /**
     * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
     * reverts when dividing by zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.2;

/**
 * @title ERC20 interface
 * @dev see https://eips.ethereum.org/EIPS/eip-20
 */
interface IERC20 {
    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(address from, address to, uint256 value) external returns (bool);

    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.5.2;



/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://eips.ethereum.org/EIPS/eip-20
 * Originally based on code by FirstBlood:
 * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 *
 * This implementation emits additional Approval events, allowing applications to reconstruct the allowance status for
 * all accounts just by listening to said events. Note that this isn't required by the specification, and other
 * compliant implementations may not do it.
 */
contract ERC20 is IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowed;

    uint256 private _totalSupply;

    /**
     * @dev Total number of tokens in existence
     */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param owner The address to query the balance of.
     * @return A uint256 representing the amount owned by the passed address.
     */
    function balanceOf(address owner) public view returns (uint256) {
        return _balances[owner];
    }

    /**
     * @dev Function to check the amount of tokens that an owner allowed to a spender.
     * @param owner address The address which owns the funds.
     * @param spender address The address which will spend the funds.
     * @return A uint256 specifying the amount of tokens still available for the spender.
     */
    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowed[owner][spender];
    }

    /**
     * @dev Transfer token to a specified address
     * @param to The address to transfer to.
     * @param value The amount to be transferred.
     */
    function transfer(address to, uint256 value) public returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
     * Beware that changing an allowance with this method brings the risk that someone may use both the old
     * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate 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
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     */
    function approve(address spender, uint256 value) public returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    /**
     * @dev Transfer tokens from one address to another.
     * Note that while this function emits an Approval event, this is not required as per the specification,
     * and other compliant implementations may not emit the event.
     * @param from address The address which you want to send tokens from
     * @param to address The address which you want to transfer to
     * @param value uint256 the amount of tokens to be transferred
     */
    function transferFrom(address from, address to, uint256 value) public returns (bool) {
        _transfer(from, to, value);
        _approve(from, msg.sender, _allowed[from][msg.sender].sub(value));
        return true;
    }

    /**
     * @dev Increase the amount of tokens that an owner allowed to a spender.
     * approve should be called when _allowed[msg.sender][spender] == 0. To increment
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * Emits an Approval event.
     * @param spender The address which will spend the funds.
     * @param addedValue The amount of tokens to increase the allowance by.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowed[msg.sender][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Decrease the amount of tokens that an owner allowed to a spender.
     * approve should be called when _allowed[msg.sender][spender] == 0. To decrement
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * Emits an Approval event.
     * @param spender The address which will spend the funds.
     * @param subtractedValue The amount of tokens to decrease the allowance by.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(msg.sender, spender, _allowed[msg.sender][spender].sub(subtractedValue));
        return true;
    }

    /**
     * @dev Transfer token for a specified addresses
     * @param from The address to transfer from.
     * @param to The address to transfer to.
     * @param value The amount to be transferred.
     */
    function _transfer(address from, address to, uint256 value) internal {
        require(to != address(0));

        _balances[from] = _balances[from].sub(value);
        _balances[to] = _balances[to].add(value);
        emit Transfer(from, to, value);
    }

    /**
     * @dev Internal function that mints an amount of the token and assigns it to
     * an account. This encapsulates the modification of balances such that the
     * proper events are emitted.
     * @param account The account that will receive the created tokens.
     * @param value The amount that will be created.
     */
    function _mint(address account, uint256 value) internal {
        require(account != address(0));

        _totalSupply = _totalSupply.add(value);
        _balances[account] = _balances[account].add(value);
        emit Transfer(address(0), account, value);
    }

    /**
     * @dev Internal function that burns an amount of the token of a given
     * account.
     * @param account The account whose tokens will be burnt.
     * @param value The amount that will be burnt.
     */
    function _burn(address account, uint256 value) internal {
        require(account != address(0));

        _totalSupply = _totalSupply.sub(value);
        _balances[account] = _balances[account].sub(value);
        emit Transfer(account, address(0), value);
    }

    /**
     * @dev Approve an address to spend another addresses' tokens.
     * @param owner The address that owns the tokens.
     * @param spender The address that will spend the tokens.
     * @param value The number of tokens that can be spent.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        require(spender != address(0));
        require(owner != address(0));

        _allowed[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    /**
     * @dev Internal function that burns an amount of the token of a given
     * account, deducting from the sender's allowance for said account. Uses the
     * internal burn function.
     * Emits an Approval event (reflecting the reduced allowance).
     * @param account The account whose tokens will be burnt.
     * @param value The amount that will be burnt.
     */
    function _burnFrom(address account, uint256 value) internal {
        _burn(account, value);
        _approve(account, msg.sender, _allowed[account][msg.sender].sub(value));
    }
}

// File: openzeppelin-solidity/contracts/access/Roles.sol

pragma solidity ^0.5.2;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev give an account access to this role
     */
    function add(Role storage role, address account) internal {
        require(account != address(0));
        require(!has(role, account));

        role.bearer[account] = true;
    }

    /**
     * @dev remove an account's access to this role
     */
    function remove(Role storage role, address account) internal {
        require(account != address(0));
        require(has(role, account));

        role.bearer[account] = false;
    }

    /**
     * @dev check if an account has this role
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0));
        return role.bearer[account];
    }
}

// File: openzeppelin-solidity/contracts/access/roles/MinterRole.sol

pragma solidity ^0.5.2;


contract MinterRole {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor () internal {
        _addMinter(msg.sender);
    }

    modifier onlyMinter() {
        require(isMinter(msg.sender));
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public onlyMinter {
        _addMinter(account);
    }

    function renounceMinter() public {
        _removeMinter(msg.sender);
    }

    function _addMinter(address account) internal {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal {
        _minters.remove(account);
        emit MinterRemoved(account);
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol

pragma solidity ^0.5.2;



/**
 * @title ERC20Mintable
 * @dev ERC20 minting logic
 */
contract ERC20Mintable is ERC20, MinterRole {
    /**
     * @dev Function to mint tokens
     * @param to The address that will receive the minted tokens.
     * @param value The amount of tokens to mint.
     * @return A boolean that indicates if the operation was successful.
     */
    function mint(address to, uint256 value) public onlyMinter returns (bool) {
        _mint(to, value);
        return true;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol

pragma solidity ^0.5.2;


/**
 * @title ERC20Detailed token
 * @dev The decimals are only for visualization purposes.
 * All the operations are done using the smallest and indivisible token unit,
 * just as on Ethereum all the operations are done in wei.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @return the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @return the symbol of the token.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @return the number of decimals of the token.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}

// File: contracts/CommunityToken.sol

pragma solidity ^0.5.2;



/**
 * @title CommunityToken
 * @dev Standard ERC20, but with disabled 'transfer' function to prevent Sybil attack
 * Owner (or a 'minter') is a community contract, and it has some extra privileges,
 * like burning tokens for a given holder
 */
contract CommunityToken is ERC20Mintable, ERC20Detailed {

    constructor (string memory name, string memory symbol) ERC20Detailed(name, symbol, 18) public {
    }

    /**
     * @dev Function that burns an amount of the token of a given
     * account, and DOES NOT require holder's approval
     * @param from The account whose tokens will be burnt.
     * @param value The amount that will be burnt.
     */
    function burnFrom(address from, uint256 value) public onlyMinter {
        _burn(from, value);
    }

    function _transfer(address from, address to, uint256 value) internal {
        require(false, 'Community tokens can be only liquidated in the bonding curve');
    }

}

// File: contracts/BondingVault.sol

pragma solidity ^0.5.2;




/**
 * @title BondingVault
 * @dev Vault which holds (a part) of the donations and mints the tokens to the donators in return.
 * Actual funding and liquidation calls come from the community contract.
 * The logic of price (both award and liquidation) calculation is delegated to 2 corresponding formulas
 *
 */
contract BondingVault is Secondary {
    using SafeMath for uint256;

    CommunityToken public communityToken;

    BuyFormula public buyFormula;
    LiquidationFormula public liquidationFormula;

    event LogEthReceived(
        uint256 amount,
        address indexed account
    );
    event LogEthSent(
        uint256 amount,
        address indexed account
    );
    event LogTokenSell
    (
        address byWhom,
        uint256 price,
        uint256 amountOfEth
    );


    /**
    * @dev funding bondingVault and not receiving tokens back is allowed
    **/
    function() external payable {
        emit LogEthReceived(msg.value, msg.sender);
    }

    constructor(string memory _tokenName, string memory _tokenSymbol, address _buyFormulaAddress, address _liquidationFormulaAddress, uint256 _initialMint)
    public payable{
        communityToken = new CommunityToken(_tokenName, _tokenSymbol);
        communityToken.mint(msg.sender, _initialMint);
        buyFormula = BuyFormula(_buyFormulaAddress);
        liquidationFormula = LiquidationFormula(_liquidationFormulaAddress);
    }

    function fundWithAward(address payable _donator) public payable onlyPrimary {
        //calculate current 'buy' price for this donator
        (uint256 price, uint256 _tokenAmount) = myBuyPrice(msg.value, _donator);

        communityToken.mint(_donator, _tokenAmount);
        emit LogEthReceived(msg.value, _donator);
    }

    function sell(uint256 _amount, address payable _donator) public onlyPrimary {
        // calculate sell return
        (uint256 price, uint256 amountOfEth) = mySellPrice(_amount, _donator);

        communityToken.burnFrom(_donator, _amount);

        _donator.transfer(amountOfEth);
        emit LogEthSent(amountOfEth, _donator);
        emit LogTokenSell(_donator, price, amountOfEth);
    }

    /**
    * @dev Owner can withdraw the remaining ETH balance as long as amount of minted tokens is
    * less than 1 token (due to possible rounding leftovers)
    *
    */
    function sweepVault(address payable _operator) public onlyPrimary {
        //1 initially minted + 1 possible rounding corrections
        require(communityToken.totalSupply() < 2 ether, 'Sweep available only if no minted tokens left');
        require(address(this).balance > 0, 'Vault is empty');
        _operator.transfer(address(this).balance);
        emit LogEthSent(address(this).balance, _operator);
    }

    function myBuyPrice(uint256 _ethAmount, address payable _donator) public onlyPrimary
    view returns (uint256 finalPrice, uint256 tokenAmount) {
        uint256 _tokenSupply = communityToken.totalSupply();
        uint256 _ethInVault = address(this).balance;
        uint256 _tokenBalance = communityToken.balanceOf(_donator);
        return buyFormula.applyFormula(_ethAmount, _tokenBalance, _tokenSupply, _ethInVault);
    }

    function mySellPrice(uint256 _tokenAmount, address payable _donator) public onlyPrimary
    view returns (uint256 finalPrice, uint256 redeemableEth) {
        uint256 _tokenBalance = communityToken.balanceOf(_donator);
        require(_tokenAmount > 0 && _tokenBalance >= _tokenAmount, "Amount needs to be > 0 and tokenBalance >= amount to sell");

        uint256 _tokenSupply = communityToken.totalSupply();
        uint256 _ethInVault = address(this).balance;
        return liquidationFormula.applyFormula(_tokenAmount, _tokenBalance, _tokenSupply, _ethInVault);
    }

    function getCommunityToken() public view onlyPrimary returns (address) {
        return address(communityToken);
    }

    function setBuyFormula(address _newBuyFormula) public onlyPrimary {
        buyFormula = BuyFormula(_newBuyFormula);
    }

    function setSellFormula(address _newSellFormula) public onlyPrimary {
        liquidationFormula = LiquidationFormula(_newSellFormula);
    }

}

interface BuyFormula {

    function applyFormula(uint256 _ethAmount, uint256 _tokenBalance, uint256 _tokenSupply, uint256 _ethInVault)
    external view returns (uint256 _finalPrice, uint256 _tokenAmount);

}

interface LiquidationFormula {

    function applyFormula(uint256 _tokenAmount, uint256 _tokenBalance, uint256 _tokenSupply, uint256 _ethInVault)
    external view returns (uint256 _finalPrice, uint256 _redeemableEth);

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_newBuyFormula","type":"address"}],"name":"setBuyFormula","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"recipient","type":"address"}],"name":"transferPrimary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"communityToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"},{"name":"_donator","type":"address"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newSellFormula","type":"address"}],"name":"setSellFormula","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getCommunityToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_operator","type":"address"}],"name":"sweepVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenAmount","type":"uint256"},{"name":"_donator","type":"address"}],"name":"mySellPrice","outputs":[{"name":"finalPrice","type":"uint256"},{"name":"redeemableEth","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyFormula","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_donator","type":"address"}],"name":"fundWithAward","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"liquidationFormula","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"primary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ethAmount","type":"uint256"},{"name":"_donator","type":"address"}],"name":"myBuyPrice","outputs":[{"name":"finalPrice","type":"uint256"},{"name":"tokenAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_tokenName","type":"string"},{"name":"_tokenSymbol","type":"string"},{"name":"_buyFormulaAddress","type":"address"},{"name":"_liquidationFormulaAddress","type":"address"},{"name":"_initialMint","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"},{"indexed":true,"name":"account","type":"address"}],"name":"LogEthReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"},{"indexed":true,"name":"account","type":"address"}],"name":"LogEthSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"byWhom","type":"address"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"amountOfEth","type":"uint256"}],"name":"LogTokenSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"recipient","type":"address"}],"name":"PrimaryTransferred","type":"event"}]

608060405260405162001eb238038062001eb2833981018060405260a08110156200002957600080fd5b8101908080516401000000008111156200004257600080fd5b820160208101848111156200005657600080fd5b81516401000000008111828201871017156200007157600080fd5b505092919060200180516401000000008111156200008e57600080fd5b82016020810184811115620000a257600080fd5b8151640100000000811182820187101715620000bd57600080fd5b505060208083015160408085015160609095015160008054600160a060020a0319163317908190558251600160a060020a03919091168152915194975091955090927f4101e71e974f68df5e9730cc223280b41654676bbb052cdcc735c3337e64d2d9929181900390910190a184846200013662000312565b604080825283519082015282518190602080830191606084019187019080838360005b838110156200017357818101518382015260200162000159565b50505050905090810190601f168015620001a15780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015620001d6578181015183820152602001620001bc565b50505050905090810190601f168015620002045780820380516001836020036101000a031916815260200191505b50945050505050604051809103906000f08015801562000228573d6000803e3d6000fd5b5060018054600160a060020a031916600160a060020a039283161790819055604080517f40c10f1900000000000000000000000000000000000000000000000000000000815233600482015260248101859052905191909216916340c10f199160448083019260209291908290030181600087803b158015620002aa57600080fd5b505af1158015620002bf573d6000803e3d6000fd5b505050506040513d6020811015620002d657600080fd5b505060028054600160a060020a03948516600160a060020a03199182161790915560038054939094169216919091179091555062000323915050565b604051610d9c806200111683390190565b610de380620003336000396000f3fe6080604052600436106100de576000357c0100000000000000000000000000000000000000000000000000000000900480639d5dfe8b1161009c578063b39824a711610076578063b39824a7146102ca578063b9fb8825146102f0578063c6dbdf6114610305578063cdeb2df21461031a576100de565b80639d5dfe8b14610230578063a682761114610263578063a9e944d4146102b5576100de565b80626a22d6146101165780632348238c1461014b57806329aa16171461017e5780634189a68e146101af57806357bf2220146101e857806399efcaec1461021b575b60408051348152905133917f8a68b2fe3158c268b3e8da102cd572ce692127bcc589402f0e06e2bfc0c3a9cf919081900360200190a2005b34801561012257600080fd5b506101496004803603602081101561013957600080fd5b5035600160a060020a0316610353565b005b34801561015757600080fd5b506101496004803603602081101561016e57600080fd5b5035600160a060020a0316610399565b34801561018a57600080fd5b5061019361042c565b60408051600160a060020a039092168252519081900360200190f35b3480156101bb57600080fd5b50610149600480360360408110156101d257600080fd5b5080359060200135600160a060020a031661043b565b3480156101f457600080fd5b506101496004803603602081101561020b57600080fd5b5035600160a060020a03166105ae565b34801561022757600080fd5b506101936105f4565b34801561023c57600080fd5b506101496004803603602081101561025357600080fd5b5035600160a060020a031661061c565b34801561026f57600080fd5b5061029c6004803603604081101561028657600080fd5b5080359060200135600160a060020a0316610804565b6040805192835260208301919091528051918290030190f35b3480156102c157600080fd5b50610193610a65565b610149600480360360208110156102e057600080fd5b5035600160a060020a0316610a74565b3480156102fc57600080fd5b50610193610b7b565b34801561031157600080fd5b50610193610b8a565b34801561032657600080fd5b5061029c6004803603604081101561033d57600080fd5b5080359060200135600160a060020a0316610b99565b600054600160a060020a0316331461036a57600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a031633146103b057600080fd5b600160a060020a03811615156103c557600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03838116919091179182905560408051929091168252517f4101e71e974f68df5e9730cc223280b41654676bbb052cdcc735c3337e64d2d9916020908290030190a150565b600154600160a060020a031681565b600054600160a060020a0316331461045257600080fd5b60008061045f8484610804565b600154604080517f79cc6790000000000000000000000000000000000000000000000000000000008152600160a060020a038881166004830152602482018a9052915194965092945016916379cc67909160448082019260009290919082900301818387803b1580156104d157600080fd5b505af11580156104e5573d6000803e3d6000fd5b5050604051600160a060020a038616925083156108fc02915083906000818181858888f1935050505015801561051f573d6000803e3d6000fd5b50604080518281529051600160a060020a038516917fdf5983565e1f67d7cfa297d3729a3e95ec39dc41c53cfaf9f92bf23e9ad589bd919081900360200190a260408051600160a060020a03851681526020810184905280820183905290517fe8b430f755940e4008739f3cb076b2a37d0385a4e5d33ede4c7e9e799604a9649181900360600190a150505050565b600054600160a060020a031633146105c557600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008054600160a060020a0316331461060c57600080fd5b50600154600160a060020a031690565b600054600160a060020a0316331461063357600080fd5b600154604080517f18160ddd0000000000000000000000000000000000000000000000000000000081529051671bc16d674ec8000092600160a060020a0316916318160ddd916004808301926020929190829003018186803b15801561069857600080fd5b505afa1580156106ac573d6000803e3d6000fd5b505050506040513d60208110156106c257600080fd5b50511061071a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180610d52602d913960400191505060405180910390fd5b600030311161078a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5661756c7420697320656d707479000000000000000000000000000000000000604482015290519081900360640190fd5b604051600160a060020a03821690303180156108fc02916000818181858888f193505050501580156107c0573d6000803e3d6000fd5b5060408051303181529051600160a060020a038316917fdf5983565e1f67d7cfa297d3729a3e95ec39dc41c53cfaf9f92bf23e9ad589bd919081900360200190a250565b600080548190600160a060020a0316331461081e57600080fd5b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152915160009392909216916370a0823191602480820192602092909190829003018186803b15801561088857600080fd5b505afa15801561089c573d6000803e3d6000fd5b505050506040513d60208110156108b257600080fd5b505190506000851180156108c65750848110155b151561091d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526039815260200180610d7f6039913960400191505060405180910390fd5b600154604080517f18160ddd0000000000000000000000000000000000000000000000000000000081529051600092600160a060020a0316916318160ddd916004808301926020929190829003018186803b15801561097b57600080fd5b505afa15801561098f573d6000803e3d6000fd5b505050506040513d60208110156109a557600080fd5b5051600354604080517f975c2060000000000000000000000000000000000000000000000000000000008152600481018a90526024810186905260448101849052303160648201819052825194955093600160a060020a039093169263975c206092608480840193919291829003018186803b158015610a2457600080fd5b505afa158015610a38573d6000803e3d6000fd5b505050506040513d6040811015610a4e57600080fd5b508051602090910151909890975095505050505050565b600254600160a060020a031681565b600054600160a060020a03163314610a8b57600080fd5b600080610a983484610b99565b600154604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a03888116600483015260248201859052915194965092945016916340c10f19916044808201926020929091908290030181600087803b158015610b0b57600080fd5b505af1158015610b1f573d6000803e3d6000fd5b505050506040513d6020811015610b3557600080fd5b5050604080513481529051600160a060020a038516917f8a68b2fe3158c268b3e8da102cd572ce692127bcc589402f0e06e2bfc0c3a9cf919081900360200190a2505050565b600354600160a060020a031681565b600054600160a060020a031690565b600080548190600160a060020a03163314610bb357600080fd5b600154604080517f18160ddd0000000000000000000000000000000000000000000000000000000081529051600092600160a060020a0316916318160ddd916004808301926020929190829003018186803b158015610c1157600080fd5b505afa158015610c25573d6000803e3d6000fd5b505050506040513d6020811015610c3b57600080fd5b5051600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301529151939450303193600093909216916370a0823191602480820192602092909190829003018186803b158015610cac57600080fd5b505afa158015610cc0573d6000803e3d6000fd5b505050506040513d6020811015610cd657600080fd5b5051600254604080517f975c2060000000000000000000000000000000000000000000000000000000008152600481018b90526024810184905260448101879052606481018690528151939450600160a060020a039092169263975c2060926084808201939291829003018186803b158015610a2457600080fdfe537765657020617661696c61626c65206f6e6c79206966206e6f206d696e74656420746f6b656e73206c656674416d6f756e74206e6565647320746f206265203e203020616e6420746f6b656e42616c616e6365203e3d20616d6f756e7420746f2073656c6ca165627a7a72305820c45d74a6caf04b70932a892693fd2f01e5aff0cba21e39b65fac9f6984acef35002960806040523480156200001157600080fd5b5060405162000d9c38038062000d9c833981018060405260408110156200003757600080fd5b8101908080516401000000008111156200005057600080fd5b820160208101848111156200006457600080fd5b81516401000000008111828201871017156200007f57600080fd5b505092919060200180516401000000008111156200009c57600080fd5b82016020810184811115620000b057600080fd5b8151640100000000811182820187101715620000cb57600080fd5b505092919050505081816012620000f1336200013c640100000000026401000000009004565b82516200010690600490602086019062000221565b5081516200011c90600590602085019062000221565b506006805460ff191660ff9290921691909117905550620002c692505050565b62000157600382640100000000620009c46200018e82021704565b604051600160a060020a038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b600160a060020a0381161515620001a457600080fd5b620001b98282640100000000620001e9810204565b15620001c457600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b6000600160a060020a03821615156200020157600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200026457805160ff191683800117855562000294565b8280016001018555821562000294579182015b828111156200029457825182559160200191906001019062000277565b50620002a2929150620002a6565b5090565b620002c391905b80821115620002a25760008155600101620002ad565b90565b610ac680620002d66000396000f3fe608060405234801561001057600080fd5b506004361061011d576000357c01000000000000000000000000000000000000000000000000000000009004806379cc6790116100b4578063a457c2d711610083578063a457c2d71461032f578063a9059cbb1461035b578063aa271e1a14610387578063dd62ed3e146103ad5761011d565b806379cc6790146102cb57806395d89b41146102f9578063983b2d561461030157806398650275146103275761011d565b8063313ce567116100f0578063313ce5671461022f578063395093511461024d57806340c10f191461027957806370a08231146102a55761011d565b806306fdde0314610122578063095ea7b31461019f57806318160ddd146101df57806323b872dd146101f9575b600080fd5b61012a6103db565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561016457818101518382015260200161014c565b50505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101cb600480360360408110156101b557600080fd5b50600160a060020a038135169060200135610471565b604080519115158252519081900360200190f35b6101e7610487565b60408051918252519081900360200190f35b6101cb6004803603606081101561020f57600080fd5b50600160a060020a0381358116916020810135909116906040013561048d565b6102376104e4565b6040805160ff9092168252519081900360200190f35b6101cb6004803603604081101561026357600080fd5b50600160a060020a0381351690602001356104ed565b6101cb6004803603604081101561028f57600080fd5b50600160a060020a038135169060200135610529565b6101e7600480360360208110156102bb57600080fd5b5035600160a060020a0316610549565b6102f7600480360360408110156102e157600080fd5b50600160a060020a038135169060200135610564565b005b61012a610586565b6102f76004803603602081101561031757600080fd5b5035600160a060020a03166105e7565b6102f7610607565b6101cb6004803603604081101561034557600080fd5b50600160a060020a038135169060200135610612565b6101cb6004803603604081101561037157600080fd5b50600160a060020a03813516906020013561064e565b6101cb6004803603602081101561039d57600080fd5b5035600160a060020a031661065b565b6101e7600480360360408110156103c357600080fd5b50600160a060020a0381358116916020013516610674565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104675780601f1061043c57610100808354040283529160200191610467565b820191906000526020600020905b81548152906001019060200180831161044a57829003601f168201915b5050505050905090565b600061047e33848461069f565b50600192915050565b60025490565b600061049a84848461072b565b600160a060020a0384166000908152600160209081526040808320338085529252909120546104da9186916104d5908663ffffffff61077c16565b61069f565b5060019392505050565b60065460ff1690565b336000818152600160209081526040808320600160a060020a0387168452909152812054909161047e9185906104d5908663ffffffff61079116565b60006105343361065b565b151561053f57600080fd5b61047e83836107aa565b600160a060020a031660009081526020819052604090205490565b61056d3361065b565b151561057857600080fd5b6105828282610854565b5050565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104675780601f1061043c57610100808354040283529160200191610467565b6105f03361065b565b15156105fb57600080fd5b610604816108fd565b50565b61061033610945565b565b336000818152600160209081526040808320600160a060020a0387168452909152812054909161047e9185906104d5908663ffffffff61077c16565b600061047e33848461072b565b600061066e60038363ffffffff61098d16565b92915050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600160a060020a03821615156106b457600080fd5b600160a060020a03831615156106c957600080fd5b600160a060020a03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180610a5f603c913960400191505060405180910390fd5b60008282111561078b57600080fd5b50900390565b6000828201838110156107a357600080fd5b9392505050565b600160a060020a03821615156107bf57600080fd5b6002546107d2908263ffffffff61079116565b600255600160a060020a0382166000908152602081905260409020546107fe908263ffffffff61079116565b600160a060020a0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600160a060020a038216151561086957600080fd5b60025461087c908263ffffffff61077c16565b600255600160a060020a0382166000908152602081905260409020546108a8908263ffffffff61077c16565b600160a060020a038316600081815260208181526040808320949094558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050565b61090e60038263ffffffff6109c416565b604051600160a060020a038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b61095660038263ffffffff610a1216565b604051600160a060020a038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b6000600160a060020a03821615156109a457600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b600160a060020a03811615156109d957600080fd5b6109e3828261098d565b156109ed57600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600160a060020a0381161515610a2757600080fd5b610a31828261098d565b1515610a3c57600080fd5b600160a060020a0316600090815260209190915260409020805460ff1916905556fe436f6d6d756e69747920746f6b656e732063616e206265206f6e6c79206c69717569646174656420696e2074686520626f6e64696e67206375727665a165627a7a72305820bf639f6bbcc8e97f4643fda25bf8b031922ec55ccc27074e351e5c96b256ea1f002900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000617ced785992c858075ce4cd5d204096edb30720000000000000000000000000fff280e88c87a07d72800c6e8e06dfb29159c9570000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000084368616e6365425900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064348414e43450000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100de576000357c0100000000000000000000000000000000000000000000000000000000900480639d5dfe8b1161009c578063b39824a711610076578063b39824a7146102ca578063b9fb8825146102f0578063c6dbdf6114610305578063cdeb2df21461031a576100de565b80639d5dfe8b14610230578063a682761114610263578063a9e944d4146102b5576100de565b80626a22d6146101165780632348238c1461014b57806329aa16171461017e5780634189a68e146101af57806357bf2220146101e857806399efcaec1461021b575b60408051348152905133917f8a68b2fe3158c268b3e8da102cd572ce692127bcc589402f0e06e2bfc0c3a9cf919081900360200190a2005b34801561012257600080fd5b506101496004803603602081101561013957600080fd5b5035600160a060020a0316610353565b005b34801561015757600080fd5b506101496004803603602081101561016e57600080fd5b5035600160a060020a0316610399565b34801561018a57600080fd5b5061019361042c565b60408051600160a060020a039092168252519081900360200190f35b3480156101bb57600080fd5b50610149600480360360408110156101d257600080fd5b5080359060200135600160a060020a031661043b565b3480156101f457600080fd5b506101496004803603602081101561020b57600080fd5b5035600160a060020a03166105ae565b34801561022757600080fd5b506101936105f4565b34801561023c57600080fd5b506101496004803603602081101561025357600080fd5b5035600160a060020a031661061c565b34801561026f57600080fd5b5061029c6004803603604081101561028657600080fd5b5080359060200135600160a060020a0316610804565b6040805192835260208301919091528051918290030190f35b3480156102c157600080fd5b50610193610a65565b610149600480360360208110156102e057600080fd5b5035600160a060020a0316610a74565b3480156102fc57600080fd5b50610193610b7b565b34801561031157600080fd5b50610193610b8a565b34801561032657600080fd5b5061029c6004803603604081101561033d57600080fd5b5080359060200135600160a060020a0316610b99565b600054600160a060020a0316331461036a57600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a031633146103b057600080fd5b600160a060020a03811615156103c557600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03838116919091179182905560408051929091168252517f4101e71e974f68df5e9730cc223280b41654676bbb052cdcc735c3337e64d2d9916020908290030190a150565b600154600160a060020a031681565b600054600160a060020a0316331461045257600080fd5b60008061045f8484610804565b600154604080517f79cc6790000000000000000000000000000000000000000000000000000000008152600160a060020a038881166004830152602482018a9052915194965092945016916379cc67909160448082019260009290919082900301818387803b1580156104d157600080fd5b505af11580156104e5573d6000803e3d6000fd5b5050604051600160a060020a038616925083156108fc02915083906000818181858888f1935050505015801561051f573d6000803e3d6000fd5b50604080518281529051600160a060020a038516917fdf5983565e1f67d7cfa297d3729a3e95ec39dc41c53cfaf9f92bf23e9ad589bd919081900360200190a260408051600160a060020a03851681526020810184905280820183905290517fe8b430f755940e4008739f3cb076b2a37d0385a4e5d33ede4c7e9e799604a9649181900360600190a150505050565b600054600160a060020a031633146105c557600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008054600160a060020a0316331461060c57600080fd5b50600154600160a060020a031690565b600054600160a060020a0316331461063357600080fd5b600154604080517f18160ddd0000000000000000000000000000000000000000000000000000000081529051671bc16d674ec8000092600160a060020a0316916318160ddd916004808301926020929190829003018186803b15801561069857600080fd5b505afa1580156106ac573d6000803e3d6000fd5b505050506040513d60208110156106c257600080fd5b50511061071a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180610d52602d913960400191505060405180910390fd5b600030311161078a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5661756c7420697320656d707479000000000000000000000000000000000000604482015290519081900360640190fd5b604051600160a060020a03821690303180156108fc02916000818181858888f193505050501580156107c0573d6000803e3d6000fd5b5060408051303181529051600160a060020a038316917fdf5983565e1f67d7cfa297d3729a3e95ec39dc41c53cfaf9f92bf23e9ad589bd919081900360200190a250565b600080548190600160a060020a0316331461081e57600080fd5b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152915160009392909216916370a0823191602480820192602092909190829003018186803b15801561088857600080fd5b505afa15801561089c573d6000803e3d6000fd5b505050506040513d60208110156108b257600080fd5b505190506000851180156108c65750848110155b151561091d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526039815260200180610d7f6039913960400191505060405180910390fd5b600154604080517f18160ddd0000000000000000000000000000000000000000000000000000000081529051600092600160a060020a0316916318160ddd916004808301926020929190829003018186803b15801561097b57600080fd5b505afa15801561098f573d6000803e3d6000fd5b505050506040513d60208110156109a557600080fd5b5051600354604080517f975c2060000000000000000000000000000000000000000000000000000000008152600481018a90526024810186905260448101849052303160648201819052825194955093600160a060020a039093169263975c206092608480840193919291829003018186803b158015610a2457600080fd5b505afa158015610a38573d6000803e3d6000fd5b505050506040513d6040811015610a4e57600080fd5b508051602090910151909890975095505050505050565b600254600160a060020a031681565b600054600160a060020a03163314610a8b57600080fd5b600080610a983484610b99565b600154604080517f40c10f19000000000000000000000000000000000000000000000000000000008152600160a060020a03888116600483015260248201859052915194965092945016916340c10f19916044808201926020929091908290030181600087803b158015610b0b57600080fd5b505af1158015610b1f573d6000803e3d6000fd5b505050506040513d6020811015610b3557600080fd5b5050604080513481529051600160a060020a038516917f8a68b2fe3158c268b3e8da102cd572ce692127bcc589402f0e06e2bfc0c3a9cf919081900360200190a2505050565b600354600160a060020a031681565b600054600160a060020a031690565b600080548190600160a060020a03163314610bb357600080fd5b600154604080517f18160ddd0000000000000000000000000000000000000000000000000000000081529051600092600160a060020a0316916318160ddd916004808301926020929190829003018186803b158015610c1157600080fd5b505afa158015610c25573d6000803e3d6000fd5b505050506040513d6020811015610c3b57600080fd5b5051600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301529151939450303193600093909216916370a0823191602480820192602092909190829003018186803b158015610cac57600080fd5b505afa158015610cc0573d6000803e3d6000fd5b505050506040513d6020811015610cd657600080fd5b5051600254604080517f975c2060000000000000000000000000000000000000000000000000000000008152600481018b90526024810184905260448101879052606481018690528151939450600160a060020a039092169263975c2060926084808201939291829003018186803b158015610a2457600080fdfe537765657020617661696c61626c65206f6e6c79206966206e6f206d696e74656420746f6b656e73206c656674416d6f756e74206e6565647320746f206265203e203020616e6420746f6b656e42616c616e6365203e3d20616d6f756e7420746f2073656c6ca165627a7a72305820c45d74a6caf04b70932a892693fd2f01e5aff0cba21e39b65fac9f6984acef350029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000617ced785992c858075ce4cd5d204096edb30720000000000000000000000000fff280e88c87a07d72800c6e8e06dfb29159c9570000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000084368616e6365425900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064348414e43450000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): ChanceBY
Arg [1] : _tokenSymbol (string): CHANCE
Arg [2] : _buyFormulaAddress (address): 0x617cEd785992c858075CE4Cd5D204096eDB30720
Arg [3] : _liquidationFormulaAddress (address): 0xFFf280e88c87a07D72800C6E8E06Dfb29159C957
Arg [4] : _initialMint (uint256): 1000000000000000000

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000617ced785992c858075ce4cd5d204096edb30720
Arg [3] : 000000000000000000000000fff280e88c87a07d72800c6e8e06dfb29159c957
Arg [4] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 4368616e63654259000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 4348414e43450000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

17146:3945:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17795:37;;;17810:9;17795:37;;;;17821:10;;17795:37;;;;;;;;;;17146:3945;20811:124;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20811:124:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20811:124:0;-1:-1:-1;;;;;20811:124:0;;:::i;:::-;;1030:189;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1030:189:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1030:189:0;-1:-1:-1;;;;;1030:189:0;;:::i;17223:36::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17223:36:0;;;:::i;:::-;;;;-1:-1:-1;;;;;17223:36:0;;;;;;;;;;;;;;18634:403;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18634:403:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18634:403:0;;;;;;-1:-1:-1;;;;;18634:403:0;;:::i;20943:143::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20943:143:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20943:143:0;-1:-1:-1;;;;;20943:143:0;;:::i;20683:120::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20683:120:0;;;:::i;19226:420::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19226:420:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19226:420:0;-1:-1:-1;;;;;19226:420:0;;:::i;20095:580::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20095:580:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20095:580:0;;;;;;-1:-1:-1;;;;;20095:580:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;17268:28;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17268:28:0;;;:::i;18295:331::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18295:331:0;-1:-1:-1;;;;;18295:331:0;;:::i;17303:44::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17303:44:0;;;:::i;818:83::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;818:83:0;;;:::i;19654:433::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19654:433:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19654:433:0;;;;;;-1:-1:-1;;;;;19654:433:0;;:::i;20811:124::-;719:8;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;20888:10;:39;;-1:-1:-1;;20888:39:0;-1:-1:-1;;;;;20888:39:0;;;;;;;;;;20811:124::o;1030:189::-;719:8;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;-1:-1:-1;;;;;1112:23:0;;;;1104:32;;;;;;1147:8;:20;;-1:-1:-1;;1147:20:0;-1:-1:-1;;;;;1147:20:0;;;;;;;;;;;1183:28;;;1202:8;;;;1183:28;;;;;;;;;;;;;1030:189;:::o;17223:36::-;;;-1:-1:-1;;;;;17223:36:0;;:::o;18634:403::-;719:8;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;18756:13;18771:19;18794:30;18806:7;18815:8;18794:11;:30::i;:::-;18837:14;;:42;;;;;;-1:-1:-1;;;;;18837:42:0;;;;;;;;;;;;;;;18755:69;;-1:-1:-1;18755:69:0;;-1:-1:-1;18837:14:0;;:23;;:42;;;;;:14;;:42;;;;;;;;:14;;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;18837:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;18892:30:0;;-1:-1:-1;;;;;18892:17:0;;;-1:-1:-1;18892:30:0;;;;;-1:-1:-1;18910:11:0;;18892:30;;;;18910:11;18892:17;:30;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;18938:33:0;;;;;;;;-1:-1:-1;;;;;18938:33:0;;;;;;;;;;;;;18987:42;;;-1:-1:-1;;;;;18987:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;739:1;;18634:403;;:::o;20943:143::-;719:8;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;21022:18;:56;;-1:-1:-1;;21022:56:0;-1:-1:-1;;;;;21022:56:0;;;;;;;;;;20943:143::o;20683:120::-;20745:7;719:8;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;-1:-1:-1;20780:14:0;;-1:-1:-1;;;;;20780:14:0;20683:120;:::o;19226:420::-;719:8;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;19375:14;;:28;;;;;;;;19406:7;;-1:-1:-1;;;;;19375:14:0;;:26;;:28;;;;;;;;;;;;;;:14;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;19375:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19375:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19375:28:0;:38;19367:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19506:1;19490:4;19482:21;:25;19474:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19537:41;;-1:-1:-1;;;;;19537:18:0;;;19564:4;19556:21;19537:41;;;;;;;;;19556:21;19537:18;:41;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;19594:44:0;;;19613:4;19605:21;19594:44;;;;-1:-1:-1;;;;;19594:44:0;;;;;;;;;;;;;19226:420;:::o;20095:580::-;20202:18;719:8;;20202:18;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;20280:14;;:34;;;;;;-1:-1:-1;;;;;20280:34:0;;;;;;;;;20256:21;;20280:14;;;;;:24;;:34;;;;;;;;;;;;;;;:14;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;20280:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20280:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20280:34:0;;-1:-1:-1;20348:1:0;20333:16;;:49;;;;;20370:12;20353:13;:29;;20333:49;20325:119;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20480:14;;:28;;;;;;;;20457:20;;-1:-1:-1;;;;;20480:14:0;;:26;;:28;;;;;;;;;;;;;;:14;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;20480:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20480:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20480:28:0;20580:18;;:87;;;;;;;;;;;;;;;;;;;;;;;;20549:4;20541:21;20580:87;;;;;;;;20480:28;;-1:-1:-1;20541:21:0;-1:-1:-1;;;;;20580:18:0;;;;:31;;:87;;;;;;;;;;;;;:18;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;20580:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20580:87:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20580:87:0;;;;;;;;;;;-1:-1:-1;20095:580:0;-1:-1:-1;;;;;;20095:580:0:o;17268:28::-;;;-1:-1:-1;;;;;17268:28:0;;:::o;18295:331::-;719:8;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;18441:13;18456:20;18480:31;18491:9;18502:8;18480:10;:31::i;:::-;18524:14;;:43;;;;;;-1:-1:-1;;;;;18524:43:0;;;;;;;;;;;;;;;18440:71;;-1:-1:-1;18440:71:0;;-1:-1:-1;18524:14:0;;:19;;:43;;;;;;;;;;;;;;;:14;;:43;;;5:2:-1;;;;30:1;27;20:12;5:2;18524:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18524:43:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;18583:35:0;;;18598:9;18583:35;;;;-1:-1:-1;;;;;18583:35:0;;;;;;;;;18524:43;18583:35;;;739:1;;18295:331;:::o;17303:44::-;;;-1:-1:-1;;;;;17303:44:0;;:::o;818:83::-;858:7;885:8;-1:-1:-1;;;;;885:8:0;818:83;:::o;19654:433::-;19758:18;719:8;;19758:18;;-1:-1:-1;;;;;719:8:0;705:10;:22;697:31;;;;;;19833:14;;:28;;;;;;;;19810:20;;-1:-1:-1;;;;;19833:14:0;;:26;;:28;;;;;;;;;;;;;;:14;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;19833:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19833:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19833:28:0;19950:14;;:34;;;;;;-1:-1:-1;;;;;19950:34:0;;;;;;;;;19833:28;;-1:-1:-1;19902:4:0;19894:21;;19872:19;;19950:14;;;;:24;;:34;;;;;19833:28;;19950:34;;;;;;;;:14;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;19950:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19950:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19950:34:0;20002:10;;:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19950:34;;-1:-1:-1;;;;;;20002:10:0;;;;:23;;:77;;;;;;;;;;;;:10;:77;;;5:2:-1;;;;30:1;27;20:12

Swarm Source

bzzr://bf639f6bbcc8e97f4643fda25bf8b031922ec55ccc27074e351e5c96b256ea1f

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.