Address Contract Partially Verified
Address
0xD8924385CD46e6AF6F377871C732BDe2F8e9dD18
Balance
0 ETH
Nonce
1
Code Size
1941 bytes
Creator
0xFD040c18...309e at tx 0xd42720de...788d6d
Indexed Transactions
0
Contract Bytecode
1941 bytes
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a08231146101b857806395d89b41146101de578063a9059cbb146101e6578063cae9ca5114610212578063dd62ed3e146102975761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab6102c5565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b038135169060200135610353565b604080519115158252519081900360200190f35b6101686103b9565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b038135811691602081013590911690604001356103bf565b610168610551565b610168600480360360208110156101ce57600080fd5b50356001600160a01b0316610557565b6100ab6105dc565b61014c600480360360408110156101fc57600080fd5b506001600160a01b038135169060200135610636565b61014c6004803603606081101561022857600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561025857600080fd5b82018360208201111561026a57600080fd5b8035906020019184600183028401116401000000008311171561028c57600080fd5b509092509050610666565b610168600480360360408110156102ad57600080fd5b506001600160a01b0381358116916020013516610735565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561034b5780601f106103205761010080835404028352916020019161034b565b820191906000526020600020905b81548152906001019060200180831161032e57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b6001600160a01b03831660009081526005602090815260408083203384529091528120548211156103ef57600080fd5b600480546040805163079cc67960e41b81526001600160a01b038881169482019490945260248101869052905192909116916379cc6790916044808201926020929091908290030181600087803b15801561044957600080fd5b505af115801561045d573d6000803e3d6000fd5b505050506040513d602081101561047357600080fd5b50506004805460408051630f38ca0d60e31b81526001600160a01b038781169482019490945260248101869052905192909116916379c650689160448082019260009290919082900301818387803b1580156104ce57600080fd5b505af11580156104e2573d6000803e3d6000fd5b505050506001600160a01b0384811660008181526005602090815260408083203384528252918290208054879003905581518681529151938716937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b60025481565b60048054604080516370a0823160e01b81526001600160a01b03858116948201949094529051600093909216916370a0823191602480820192602092909190829003018186803b1580156105aa57600080fd5b505afa1580156105be573d6000803e3d6000fd5b505050506040513d60208110156105d457600080fd5b505192915050565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561034b5780601f106103205761010080835404028352916020019161034b565b33600081815260056020908152604080832090915281208054840190559061065f9084846103bf565b9392505050565b6000846106738186610353565b1561072b57604051638f4ffcb160e01b81523360048201818152602483018890523060448401819052608060648501908152608485018890526001600160a01b03861694638f4ffcb194938b93928b928b92919060a401848480828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b15801561070957600080fd5b505af115801561071d573d6000803e3d6000fd5b50505050600191505061072d565b505b949350505050565b6001600160a01b0391821660009081526005602090815260408083209390941682529190915220549056fea265627a7a72315820cc84e0b2862356ad07db39c30cde146f7d605f2155f008e0cce6105824aa34be64736f6c634300050b0032
Verified Source Code Partial Match
Compiler: v0.5.11+commit.c082d0b4
EVM: petersburg
Optimization: Yes (200 runs)
Pylon_ERC20.sol 118 lines
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//: ://
//: Pylon Token ERC20 ://
//: https://pylon-network.org ://
//: ://
//: ://
//: This contract is just a way to complete the ERC20 functions for the ://
//: original Pylon Token (Smart Contract 0x7703C35CfFdC5CDa8D27aa3df2F9ba6964544b6e) ://
//: ://
//: Now Pylon_ERC20 takes the ownership of the original Pylon Token contract. ://
//: This means that onlyOwner functions of the original Pylon Token contract, ://
//: (mint, burn, frezze, transferOwner) will not be possible to execute anymore. ://
//: ://
//: All this guarantees that no one can take control of the Pylon Tokens. ://
//: ://
//: ://
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
pragma solidity ^0.5.11;
//Interface to functions of the original Pylon Token smart contract.
contract PylonToken {
function balanceOf(address _owner) external pure returns (uint256 balance);
function burnFrom(address _from, uint256 _value) external returns (bool success);
function mintToken(address _to, uint256 _value) external;
}
contract Pylon_ERC20 {
string public name = "PYLNT"; // Extended name of this contract
string public symbol = "PYLNT"; // Symbol of the Pylon Token
uint256 public decimals = 18; // The decimals to consider
uint256 public totalSupply= 633858311346493889668246; // TotalSupply of Pylon Token
PylonToken PLNTToken; //Pointer to the original Pylon Token Contract
mapping (address => mapping (address => uint256)) internal allowed;
// addrPYLNT is the address of the original Pylon Token Contract 0x7703C35CfFdC5CDa8D27aa3df2F9ba6964544b6e
constructor(address addrPYLNT) public {
PLNTToken = PylonToken(addrPYLNT);
}
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function balanceOf(address _owner) public view returns (uint256) {
return PLNTToken.balanceOf(address(_owner));
}
function transfer(address _to, uint256 _value) public returns (bool) {
allowed[msg.sender][msg.sender] += _value;
return transferFrom(msg.sender, _to, _value);
}
// The original Pylon Token contract lacks the transferFrom function, which is mandatory for the ERC20 standar.
// Below it is implemented by using the burnFrom & mintToken functions from the original contract.
function transferFrom(address _from, address _to, uint256 _value) public returns (bool){
require(_value <= allowed[_from][msg.sender]);
PLNTToken.burnFrom(_from, _value);
PLNTToken.mintToken(_to, _value);
allowed[_from][msg.sender] -= _value;
emit Transfer(_from, _to, _value);
return true;
}
function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
function allowance(address _owner, address _spender) public view returns (uint256) {
return allowed[_owner][_spender];
}
function approveAndCall(address _spender, uint256 _value, bytes calldata _extraData) external returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, address(this), _extraData);
return true;
}
}
}
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint256
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 4 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
approveAndCall 0xcae9ca51
address _spender
uint256 _value
bytes _extraData
returns: bool
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
Recent Transactions
No transactions found for this address