Transaction Hash:
Block:
12934687 at Jul-31-2021 05:33:06 PM +UTC
Transaction Fee:
0.00174996 ETH
$3.62
Gas Used:
38,888 Gas / 45 Gwei
Emitted Events:
| 237 |
MandalaToken.Transfer( from=[Sender] 0x81c68ae714e2bd4f155de8497109414137701aa6, to=0xF09dB6038Ac07e3233395D3D5063D32d6cf62488, value=149289398771073372756254 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x81C68Ae7...137701Aa6 |
0.053515881781776103 Eth
Nonce: 1610
|
0.051765921781776103 Eth
Nonce: 1611
| 0.00174996 | ||
| 0x947AEb02...9b57b1788 | |||||
|
0xEA674fdD...16B898ec8
Miner
| (Ethermine) | 2,698.82862082558454326 Eth | 2,698.83037078558454326 Eth | 0.00174996 |
Execution Trace
MandalaToken.transfer( _to=0xF09dB6038Ac07e3233395D3D5063D32d6cf62488, _value=149289398771073372756254 ) => ( True )
{"BasicToken.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\n\n\nimport \"./ERC20Basic.sol\";\nimport \"./SafeMath.sol\";\n\n\n/**\n * @title Basic token\n * @dev Basic version of StandardToken, with no allowances.\n */\ncontract BasicToken is ERC20Basic {\n using SafeMath for uint256;\n\n mapping(address =\u003e uint256) public balances;\n\n uint256 public totalSupply_;\n\n /**\n * @dev total number of tokens in existence\n */\n function totalSupply() public override view returns (uint256) {\n return totalSupply_;\n }\n\n /**\n * @dev transfer token for a specified address\n * @param _to The address to transfer to.\n * @param _value The amount to be transferred.\n */\n function transfer(address _to, uint256 _value) public override returns (bool) {\n require(_to != address(0));\n\n // SafeMath.sub will throw if there is not enough balance.\n balances[msg.sender] = balances[msg.sender].sub(_value);\n balances[_to] = balances[_to].add(_value);\n emit Transfer(msg.sender, _to, _value);\n return true;\n }\n\n\n function balanceOf(address _owner) public override view returns (uint256 balance) {\n return balances[_owner];\n }\n\n}\n\n"},"ERC20.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\n\nimport \"./ERC20Basic.sol\";\n\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\nabstract contract ERC20 is ERC20Basic {\n function allowance(address owner, address spender) public virtual view returns (uint256);\n function transferFrom(address from, address to, uint256 value) public virtual returns (bool);\n function approve(address spender, uint256 value) public virtual returns (bool);\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},"ERC20Basic.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\n\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/179\n */\nabstract contract ERC20Basic {\n function totalSupply() public virtual view returns (uint256);\n function balanceOf(address who) public virtual view returns (uint256);\n function transfer(address to, uint256 value) public virtual returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n}\n"},"MandalaToken.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\n\nimport \u0027./MintableToken.sol\u0027;\nimport \u0027./SafeMath.sol\u0027;\n\ncontract MandalaToken is MintableToken {\n\n using SafeMath for uint256;\n string public constant name = \"MANDALA EXCHANGE TOKEN\";\n string public constant symbol = \"MDX\";\n uint public constant decimals = 18;\n bool public TRANSFERS_ALLOWED = true;\n uint256 public constant MAX_TOTAL_SUPPLY = 400000000 * (10 **18);\n\n event Burn(address indexed burner, uint256 value);\n\n function burnFrom(uint256 _value, address victim) public onlyOwner canMint {\n require( victim != address(0), \"Error - victim address can not equal zero address\");\n balances[victim] = balances[victim].sub(_value);\n totalSupply_ = totalSupply().sub(_value);\n\n emit Burn(victim, _value);\n }\n\n function burn(uint256 _value) public onlyOwner {\n\n balances[msg.sender] = balances[msg.sender].sub(_value);\n totalSupply_ = totalSupply().sub(_value);\n\n emit Burn(msg.sender, _value);\n }\n\n function transferFrom(address _from, address _to, uint256 _value) public override returns (bool) {\n require(TRANSFERS_ALLOWED || msg.sender == owner, \"Error - Transfers Not Allowed\");\n\n return super.transferFrom(_from, _to, _value);\n }\n\n\n function mint(address _to, uint256 _amount) onlyOwner canMint public override returns (bool) {\n require(totalSupply_.add(_amount) \u003c= MAX_TOTAL_SUPPLY, \"Error - Max Total Supply Exceeded\");\n\n return super.mint(_to, _amount);\n }\n\n\n function transfer(address _to, uint256 _value) public override returns (bool){\n require(TRANSFERS_ALLOWED || msg.sender == owner, \"Error - Transfers Not Allowed\");\n\n return super.transfer(_to, _value);\n }\n\n function stopTransfers() public onlyOwner {\n TRANSFERS_ALLOWED = false;\n }\n\n function resumeTransfers() public onlyOwner {\n TRANSFERS_ALLOWED = true;\n }\n\n}"},"MintableToken.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\n\nimport \"./StandardToken.sol\";\nimport \"./Ownable.sol\";\n\n\n/**\n * @title Mintable token\n * @dev Simple ERC20 Token example, with mintable token creation\n */\ncontract MintableToken is StandardToken, Ownable {\n event Mint(address indexed to, uint256 amount);\n event MintFinished();\n\n bool public mintingFinished = false;\n\n\n modifier canMint() {\n require(!mintingFinished);\n _;\n }\n\n /**\n * @dev Function to mint tokens\n * @param _to The address that will receive the minted tokens.\n * @param _amount The amount of tokens to mint.\n * @return A boolean that indicates if the operation was successful.\n */\n function mint(address _to, uint256 _amount) onlyOwner canMint public virtual returns (bool) {\n require( _to != address(0), \"Error - To address can not equal zero address\");\n \n totalSupply_ = totalSupply_.add(_amount);\n balances[_to] = balances[_to].add(_amount);\n emit Mint(_to, _amount);\n emit Transfer(address(0), _to, _amount);\n return true;\n }\n\n /**\n * @dev Function to stop minting new tokens.\n * @return True if the operation was successful.\n */\n function finishMinting() onlyOwner canMint public returns (bool) {\n mintingFinished = true;\n emit MintFinished();\n return true;\n }\n}\n"},"Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n */\ncontract Ownable {\n address public owner;\n\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n constructor() public {\n owner = msg.sender;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param newOwner The address to transfer ownership to.\n */\n function transferOwnership(address newOwner) public onlyOwner {\n require(newOwner != address(0), \"Error - New Address Can Not Be Equal To The Zero Address\");\n emit OwnershipTransferred(owner, newOwner);\n owner = newOwner;\n }\n\n}\n"},"SafeMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\n\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, throws on overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n require(c / a == b, \"Error Message - Bad Math\");\n return c;\n }\n\n /**\n * @dev Integer division of two numbers, truncating the quotient.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n // assert(b \u003e 0); // Solidity automatically throws when dividing by 0\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn\u0027t hold\n require(b != 0, \"Error Message - Bad Math\");\n return c;\n }\n\n /**\n * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b \u003c= a, \"Error Message - Bad Math\");\n return a - b;\n }\n\n /**\n * @dev Adds two numbers, throws on overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c \u003e= a, \"Error Message - Bad Math\");\n return c;\n }\n}\n"},"StandardToken.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.6.12;\n\nimport \"./BasicToken.sol\";\nimport \"./ERC20.sol\";\n\n\n/**\n * @title Standard ERC20 token\n *\n * @dev Implementation of the basic standard token.\n */\ncontract StandardToken is ERC20, BasicToken {\n\n mapping (address =\u003e mapping (address =\u003e uint256)) internal allowed;\n\n\n /**\n * @dev Transfer tokens from one address to another\n * @param _from address The address which you want to send tokens from\n * @param _to address The address which you want to transfer to\n * @param _value uint256 the amount of tokens to be transferred\n */\n function transferFrom(address _from, address _to, uint256 _value) public virtual override returns (bool) {\n require(_to != address(0), \"Error - To Address Can Not Be Equal To The Zero Address\");\n require( _from != address(0), \"Error - Spender Can Not Be Equal To Zero Address\");\n\n balances[_from] = balances[_from].sub(_value);\n balances[_to] = balances[_to].add(_value);\n allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);\n emit Transfer(_from, _to, _value);\n return true;\n }\n\n /**\n * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.\n *\n * Beware that changing an allowance with this method brings the risk that someone may use both the old\n * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this\n * race condition is to first reduce the spender\u0027s allowance to 0 and set the desired value afterwards:\n * @param _spender The address which will spend the funds.\n * @param _value The amount of tokens to be spent.\n */\n function approve(address _spender, uint256 _value) public override returns (bool) {\n require( _spender != address(0), \"Error - Spender Can Not Be Equal To Zero Address\");\n allowed[msg.sender][_spender] = _value;\n emit Approval(msg.sender, _spender, _value);\n return true;\n }\n\n /**\n * @dev Function to check the amount of tokens that an owner allowed to a spender.\n * @param _owner address The address which owns the funds.\n * @param _spender address The address which will spend the funds.\n * @return A uint256 specifying the amount of tokens still available for the spender.\n */\n function allowance(address _owner, address _spender) public override view returns (uint256) {\n return allowed[_owner][_spender];\n }\n\n /**\n * @dev Increase the amount of tokens that an owner allowed to a spender.\n *\n * approve should be called when allowed[_spender] == 0. To increment\n * allowed value is better to use this function to avoid 2 calls (and wait until\n * the first transaction is mined)\n * @param _spender The address which will spend the funds.\n * @param _addedValue The amount of tokens to increase the allowance by.\n */\n function increaseApproval(address _spender, uint _addedValue) public returns (bool) {\n require( _spender != address(0), \"Error - Spender address can not equal zero address\");\n allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);\n emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);\n return true;\n }\n \n /**\n * @dev Decrease the amount of tokens that an owner allowed to a spender.\n *\n * approve should be called when allowed[_spender] == 0. To decrement\n * allowed value is better to use this function to avoid 2 calls (and wait until\n * the first transaction is mined)\n * @param _spender The address which will spend the funds.\n * @param _subtractedValue The amount of tokens to decrease the allowance by.\n */\n function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {\n require( _spender != address(0), \"Error - Spender address can not equal zero address\");\n allowed[msg.sender][_spender] = allowed[msg.sender][_spender].sub(_subtractedValue);\n emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);\n return true;\n }\n}\n\n"}}