ETH Price: $1,845.71 (+0.98%)
Gas: 22 Gwei
 

Overview

Max Total Supply

400,000,000 WILL

Holders

24

Total Transfers

-

Market

Fully Diluted Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The goal of Octowill is to provide a commercially viable and secure inheritance service made accessible to holders of all asset classes across the globe.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
OCTOWILL

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-02-14
*/

pragma solidity 0.4.24;

/**
 * Math operations with safety checks
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a * b;
        require(a == 0 || c / a == b);
  }

  function div(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require(b > 0);
        c = a / b;
  }

  function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require(b <= a);
        c = a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a + b;
        require(c >= a);
  }

}


// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
// ----------------------------------------------------------------------------
contract ERC20Interface {
  
    function totalSupply() public constant returns (uint);
    function balanceOf(address tokenOwner) public constant returns (uint balance);
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);
    function burn(uint256 tokens) public returns (bool success);
    function freeze(uint256 tokens) public returns (bool success);
    function unfreeze(uint256 tokens) public returns (bool success);


    /* This generates a public event on the blockchain that will notify clients */
    event Transfer(address indexed from, address indexed to, uint tokens);
    
    /* This approve the allowance for the spender  */
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
    
    /* This notifies clients about the amount burnt */
    event Burn(address indexed from, uint256 tokens);
    
    /* This notifies clients about the amount frozen */
    event Freeze(address indexed from, uint256 tokens);
	
    /* This notifies clients about the amount unfrozen */
    event Unfreeze(address indexed from, uint256 tokens);
 }
 
// ----------------------------------------------------------------------------
// Owned contract
// ----------------------------------------------------------------------------
contract Owned {
    address public owner;
    address public newOwner;

    event OwnershipTransferred(address indexed _from, address indexed _to);
//constructor
    constructor () public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address _newOwner) public onlyOwner {
        newOwner = _newOwner;
    }
    function acceptOwnership() public {
        require(msg.sender == newOwner);
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }
}


// ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// initial supply
// ----------------------------------------------------------------------------

contract OCTOWILL is ERC20Interface, Owned {
    using SafeMath for uint;
    string public name;
    string public symbol;
    uint8 public decimals;
    uint256 public _totalSupply;
    address public owner;

    /* This creates an array with all balances */
    mapping (address => uint256) public balances;
    mapping(address => mapping(address => uint256)) allowed;
    mapping (address => uint256) public freezeOf;
    
 
    /* Initializes contract with initial supply tokens to the creator of the contract */
   constructor (
        uint256 initialSupply,
        string tokenName,
        uint8 decimalUnits,
        string tokenSymbol
        ) public {
	
        decimals = decimalUnits;				// Amount of decimals for display purposes
        _totalSupply = initialSupply * 10**uint(decimals);      // Update total supply
        name = tokenName;                                       // Set the name for display purposes
        symbol = tokenSymbol;                                   // Set the symbol for display purpose
        owner = msg.sender;                                     // Set the creator as owner
        balances[owner] = _totalSupply;                         // Give the creator all initial tokens
	
    }
    
    // ------------------------------------------------------------------------
    // Total supply
    // ------------------------------------------------------------------------
    function totalSupply() public constant returns (uint) {
        return _totalSupply;
    }
    
    // ------------------------------------------------------------------------
    // Get the token balance for account `tokenOwner`
    // ------------------------------------------------------------------------
    function balanceOf(address tokenOwner) public constant returns (uint balance) {
        return balances[tokenOwner];
    }

    // ------------------------------------------------------------------------
    // Transfer the balance from token owner's account to `to` account
    // - Owner's account must have sufficient balance to transfer
    // ------------------------------------------------------------------------
    function transfer(address to, uint tokens) public returns (bool success) {
        require( tokens > 0 && to != 0x0 );
        balances[msg.sender] = balances[msg.sender].sub(tokens);
        balances[to] = balances[to].add(tokens);
        emit Transfer(msg.sender, to, tokens);
        return true;
    }

    // ------------------------------------------------------------------------
    // Token owner can approve for `spender` to transferFrom(...) `tokens`
    // from the token owner's account
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md 
    // recommends that there are no checks for the approval double-spend attack
    // as this should be implemented in user interfaces 
    // ------------------------------------------------------------------------
    function approve(address spender, uint tokens) public onlyOwner returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }

    // ------------------------------------------------------------------------
    // Transfer `tokens` from the `from` account to the `to` account
    // 
    // The calling account must already have sufficient tokens approve(...)-d
    // for spending from the `from` account and
    // - From account must have sufficient balance to transfer
    // - Spender must have sufficient allowance to transfer
    // ------------------------------------------------------------------------
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {
        require( tokens > 0 && to != 0x0 && from != 0x0 );
        balances[from] = balances[from].sub(tokens);
        allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
        balances[to] = balances[to].add(tokens);
        emit Transfer(from, to, tokens);
        return true;
    }

    // ------------------------------------------------------------------------
    // Returns the amount of tokens approved by the owner that can be
    // transferred to the spender's account
    // ------------------------------------------------------------------------
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }
    
    // ------------------------------------------------------------------------
    // Burns the amount of tokens by the owner
    // ------------------------------------------------------------------------
    function burn(uint256 tokens) public  onlyOwner returns (bool success) {
       require (balances[msg.sender] >= tokens) ;                        // Check if the sender has enough
       require (tokens > 0) ; 
       balances[msg.sender] = balances[msg.sender].sub(tokens);         // Subtract from the sender
       _totalSupply = _totalSupply.sub(tokens);                         // Updates totalSupply
       emit Burn(msg.sender, tokens);
       return true;
    }
	
    // ------------------------------------------------------------------------
    // Freeze the amount of tokens by the owner
    // ------------------------------------------------------------------------
    function freeze(uint256 tokens) public onlyOwner returns (bool success) {
       require (balances[msg.sender] >= tokens) ;                   // Check if the sender has enough
       require (tokens > 0) ; 
       balances[msg.sender] = balances[msg.sender].sub(tokens);    // Subtract from the sender
       freezeOf[msg.sender] = freezeOf[msg.sender].add(tokens);     // Updates totalSupply
       emit Freeze(msg.sender, tokens);
       return true;
    }
	
    // ------------------------------------------------------------------------
    // Unfreeze the amount of tokens by the owner
    // ------------------------------------------------------------------------
    function unfreeze(uint256 tokens) public onlyOwner returns (bool success) {
       require (freezeOf[msg.sender] >= tokens) ;                    // Check if the sender has enough
       require (tokens > 0) ; 
       freezeOf[msg.sender] = freezeOf[msg.sender].sub(tokens);    // Subtract from the sender
       balances[msg.sender] = balances[msg.sender].add(tokens);
       emit Unfreeze(msg.sender, tokens);
       return true;
    }


   // ------------------------------------------------------------------------
   // Don't accept ETH
   // ------------------------------------------------------------------------
   function () public payable {
      revert();
   }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokens","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"tokens","type":"uint256"}],"name":"unfreeze","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"freezeOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokens","type":"uint256"}],"name":"freeze","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"decimalUnits","type":"uint8"},{"name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenOwner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Freeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Unfreeze","type":"event"}]

Contract Creation Code

608060405234801561001057600080fd5b50604051610d1f380380610d1f833981016040908152815160208084015192840151606085015160008054600160a060020a031916331790556004805460ff80851660ff19909216919091179182905516600a0a84026005559385018051939590949193910191610086916002918601906100d7565b50805161009a9060039060208401906100d7565b505060068054600160a060020a031916331790819055600554600160a060020a039190911660009081526007602052604090205550610172915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011857805160ff1916838001178555610145565b82800160010185558215610145579182015b8281111561014557825182559160200191906001019061012a565b50610151929150610155565b5090565b61016f91905b80821115610151576000815560010161015b565b90565b610b9e806101816000396000f3006080604052600436106101065763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010b578063095ea7b31461019557806318160ddd146101cd57806323b872dd146101f457806327e235e31461021e578063313ce5671461023f5780633eaaf86b1461026a57806342966c681461027f5780636623fc461461029757806370a08231146102af57806379ba5097146102d05780638da5cb5b146102e757806395d89b4114610318578063a9059cbb1461032d578063cd4217c114610351578063d4ee1d9014610372578063d7a78db814610387578063dd62ed3e1461039f578063f2fde38b146103c6575b600080fd5b34801561011757600080fd5b506101206103e7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015a578181015183820152602001610142565b50505050905090810190601f1680156101875780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101a157600080fd5b506101b9600160a060020a0360043516602435610472565b604080519115158252519081900360200190f35b3480156101d957600080fd5b506101e26104f2565b60408051918252519081900360200190f35b34801561020057600080fd5b506101b9600160a060020a03600435811690602435166044356104f8565b34801561022a57600080fd5b506101e2600160a060020a036004351661063b565b34801561024b57600080fd5b5061025461064d565b6040805160ff9092168252519081900360200190f35b34801561027657600080fd5b506101e2610656565b34801561028b57600080fd5b506101b960043561065c565b3480156102a357600080fd5b506101b9600435610721565b3480156102bb57600080fd5b506101e2600160a060020a03600435166107ff565b3480156102dc57600080fd5b506102e561081a565b005b3480156102f357600080fd5b506102fc61089f565b60408051600160a060020a039092168252519081900360200190f35b34801561032457600080fd5b506101206108ae565b34801561033957600080fd5b506101b9600160a060020a0360043516602435610909565b34801561035d57600080fd5b506101e2600160a060020a03600435166109dd565b34801561037e57600080fd5b506102fc6109ef565b34801561039357600080fd5b506101b96004356109fe565b3480156103ab57600080fd5b506101e2600160a060020a0360043581169060243516610adc565b3480156103d257600080fd5b506102e5600160a060020a0360043516610b07565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561046a5780601f1061043f5761010080835404028352916020019161046a565b820191906000526020600020905b81548152906001019060200180831161044d57829003601f168201915b505050505081565b60008054600160a060020a0316331461048a57600080fd5b336000818152600860209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60055490565b600080821180156105115750600160a060020a03831615155b80156105255750600160a060020a03841615155b151561053057600080fd5b600160a060020a038416600090815260076020526040902054610559908363ffffffff610b4d16565b600160a060020a0385166000908152600760209081526040808320939093556008815282822033835290522054610596908363ffffffff610b4d16565b600160a060020a0380861660009081526008602090815260408083203384528252808320949094559186168152600790915220546105da908363ffffffff610b6216565b600160a060020a0380851660008181526007602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60076020526000908152604090205481565b60045460ff1681565b60055481565b60008054600160a060020a0316331461067457600080fd5b3360009081526007602052604090205482111561069057600080fd5b6000821161069d57600080fd5b336000908152600760205260409020546106bd908363ffffffff610b4d16565b336000908152600760205260409020556005546106e0908363ffffffff610b4d16565b60055560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a2506001919050565b60008054600160a060020a0316331461073957600080fd5b3360009081526009602052604090205482111561075557600080fd5b6000821161076257600080fd5b33600090815260096020526040902054610782908363ffffffff610b4d16565b336000908152600960209081526040808320939093556007905220546107ae908363ffffffff610b6216565b33600081815260076020908152604091829020939093558051858152905191927f2cfce4af01bcb9d6cf6c84ee1b7c491100b8695368264146a94d71e10a63083f92918290030190a2506001919050565b600160a060020a031660009081526007602052604090205490565b600154600160a060020a0316331461083157600080fd5b60015460008054604051600160a060020a0393841693909116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36001546000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055565b600654600160a060020a031681565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561046a5780601f1061043f5761010080835404028352916020019161046a565b600080821180156109225750600160a060020a03831615155b151561092d57600080fd5b3360009081526007602052604090205461094d908363ffffffff610b4d16565b3360009081526007602052604080822092909255600160a060020a0385168152205461097f908363ffffffff610b6216565b600160a060020a0384166000818152600760209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60096020526000908152604090205481565b600154600160a060020a031681565b60008054600160a060020a03163314610a1657600080fd5b33600090815260076020526040902054821115610a3257600080fd5b60008211610a3f57600080fd5b33600090815260076020526040902054610a5f908363ffffffff610b4d16565b33600090815260076020908152604080832093909355600990522054610a8b908363ffffffff610b6216565b33600081815260096020908152604091829020939093558051858152905191927ff97a274face0b5517365ad396b1fdba6f68bd3135ef603e44272adba3af5a1e092918290030190a2506001919050565b600160a060020a03918216600090815260086020908152604080832093909416825291909152205490565b600054600160a060020a03163314610b1e57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610b5c57600080fd5b50900390565b818101828110156104ec57600080fd00a165627a7a72305820769546b182d300244973f4e16b199ca2d25f01fcbe05378d78081bfafa8a498a0029000000000000000000000000000000000000000000000000000000001dcd65000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000084f43544f57494c4c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000457494c4c00000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000001dcd65000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000084f43544f57494c4c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000457494c4c00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 500000000
Arg [1] : tokenName (string): OCTOWILL
Arg [2] : decimalUnits (uint8): 18
Arg [3] : tokenSymbol (string): WILL

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000001dcd6500
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 4f43544f57494c4c000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 57494c4c00000000000000000000000000000000000000000000000000000000


Swarm Source

bzzr://769546b182d300244973f4e16b199ca2d25f01fcbe05378d78081bfafa8a498a
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.