FTM Testnet

Contract

0x71f1cf17e1c46a057C2A98E10B6d0e3C67d6f56c

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Add98933142022-07-27 12:09:18673 days ago1658923758IN
0x71f1cf17...C67d6f56c
0 FTM0.000048721.029051
0x6080604098932882022-07-27 12:08:30673 days ago1658923710IN
 Contract Creation
0 FTM0.000411181.029359

Latest 1 internal transaction

Parent Transaction Hash Block From To Value
98932882022-07-27 12:08:30673 days ago1658923710  Contract Creation0 FTM
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x33A1682F...5761552EB
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
FantomTokenRegistry

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license
/**
 *Submitted for verification at testnet.ftmscan.com on 2021-10-12
*/

pragma solidity 0.6.12;


// SPDX-License-Identifier: MIT
/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

contract FantomTokenRegistry is Ownable {
  /// @dev Events of the contract
  event TokenAdded(address token);
  event TokenRemoved(address token);

  /// @notice ERC20 Address -> Bool
  mapping(address => bool) public enabled;

  /**
  @notice Method for adding payment token
  @dev Only admin
  @param token ERC20 token address
  */
  function add(address token) external onlyOwner {
    require(!enabled[token], "token already added");
    enabled[token] = true;
    emit TokenAdded(token);
  }

  /**
  @notice Method for removing payment token
  @dev Only admin
  @param token ERC20 token address
  */
  function remove(address token) external onlyOwner {
    require(enabled[token], "token not exist");
    enabled[token] = false;
    emit TokenRemoved(token);
  }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"TokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"TokenRemoved","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"enabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c80630a3b0a4f1461006757806329092d0e1461008f578063715018a6146100b55780638da5cb5b146100bd57806398afdfe3146100e1578063f2fde38b1461011b575b600080fd5b61008d6004803603602081101561007d57600080fd5b50356001600160a01b0316610141565b005b61008d600480360360208110156100a557600080fd5b50356001600160a01b0316610263565b61008d61037c565b6100c5610428565b604080516001600160a01b039092168252519081900360200190f35b610107600480360360208110156100f757600080fd5b50356001600160a01b0316610437565b604080519115158252519081900360200190f35b61008d6004803603602081101561013157600080fd5b50356001600160a01b031661044c565b61014961054e565b6001600160a01b031661015a610428565b6001600160a01b0316146101a3576040805162461bcd60e51b81526020600482018190526024820152600080516020610579833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205460ff1615610207576040805162461bcd60e51b81526020600482015260136024820152721d1bdad95b88185b1c9958591e481859191959606a1b604482015290519081900360640190fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916909217909155815192835290517f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a49281900390910190a150565b61026b61054e565b6001600160a01b031661027c610428565b6001600160a01b0316146102c5576040805162461bcd60e51b81526020600482018190526024820152600080516020610579833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205460ff16610324576040805162461bcd60e51b815260206004820152600f60248201526e1d1bdad95b881b9bdd08195e1a5cdd608a1b604482015290519081900360640190fd5b6001600160a01b038116600081815260016020908152604091829020805460ff19169055815192835290517f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd39281900390910190a150565b61038461054e565b6001600160a01b0316610395610428565b6001600160a01b0316146103de576040805162461bcd60e51b81526020600482018190526024820152600080516020610579833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60016020526000908152604090205460ff1681565b61045461054e565b6001600160a01b0316610465610428565b6001600160a01b0316146104ae576040805162461bcd60e51b81526020600482018190526024820152600080516020610579833981519152604482015290519081900360640190fd5b6001600160a01b0381166104f35760405162461bcd60e51b81526004018080602001828103825260268152602001806105536026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220e68dba6b717d4894f0af9ba474dff6126daa73bf445ecb0b0f89b440ddbda86864736f6c634300060c0033

Deployed Bytecode Sourcemap

3181:801:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3531:164;;;;;;;;;;;;;;;;-1:-1:-1;3531:164:0;-1:-1:-1;;;;;3531:164:0;;:::i;:::-;;3814:165;;;;;;;;;;;;;;;;-1:-1:-1;3814:165:0;-1:-1:-1;;;;;3814:165:0;;:::i;2627:148::-;;;:::i;1976:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;1976:87:0;;;;;;;;;;;;;;3374:39;;;;;;;;;;;;;;;;-1:-1:-1;3374:39:0;-1:-1:-1;;;;;3374:39:0;;:::i;:::-;;;;;;;;;;;;;;;;;;2930:244;;;;;;;;;;;;;;;;-1:-1:-1;2930:244:0;-1:-1:-1;;;;;2930:244:0;;:::i;3531:164::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3594:14:0;::::1;;::::0;;;:7:::1;:14;::::0;;;;;::::1;;3593:15;3585:47;;;::::0;;-1:-1:-1;;;3585:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;3585:47:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;3639:14:0;::::1;;::::0;;;3656:4:::1;3639:14;::::0;;;;;;;;:21;;-1:-1:-1;;3639:21:0::1;::::0;;::::1;::::0;;;3672:17;;;;;;;::::1;::::0;;;;;;;;::::1;3531:164:::0;:::o;3814:165::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3879:14:0;::::1;;::::0;;;:7:::1;:14;::::0;;;;;::::1;;3871:42;;;::::0;;-1:-1:-1;;;3871:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;3871:42:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;3920:14:0;::::1;3937:5;3920:14:::0;;;:7:::1;:14;::::0;;;;;;;;:22;;-1:-1:-1;;3920:22:0::1;::::0;;3954:19;;;;;;;::::1;::::0;;;;;;;;::::1;3814:165:::0;:::o;2627:148::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;2734:1:::1;2718:6:::0;;2697:40:::1;::::0;-1:-1:-1;;;;;2718:6:0;;::::1;::::0;2697:40:::1;::::0;2734:1;;2697:40:::1;2765:1;2748:19:::0;;-1:-1:-1;;;;;;2748:19:0::1;::::0;;2627:148::o;1976:87::-;2022:7;2049:6;-1:-1:-1;;;;;2049:6:0;1976:87;:::o;3374:39::-;;;;;;;;;;;;;;;:::o;2930:244::-;2207:12;:10;:12::i;:::-;-1:-1:-1;;;;;2196:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2196:23:0;;2188:68;;;;;-1:-1:-1;;;2188:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2188:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3019:22:0;::::1;3011:73;;;;-1:-1:-1::0;;;3011:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3121:6;::::0;;3100:38:::1;::::0;-1:-1:-1;;;;;3100:38:0;;::::1;::::0;3121:6;::::1;::::0;3100:38:::1;::::0;::::1;3149:6;:17:::0;;-1:-1:-1;;;;;;3149:17:0::1;-1:-1:-1::0;;;;;3149:17:0;;;::::1;::::0;;;::::1;::::0;;2930:244::o;605:106::-;693:10;605:106;:::o

Swarm Source

ipfs://e68dba6b717d4894f0af9ba474dff6126daa73bf445ecb0b0f89b440ddbda868

Block Transaction 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
[ 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.