Contract 0x543ff59e8bc8844dcb2fc5116d8ff972305ae0d4

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x239df0a5f926ce2c9ade545c0e957b9db445709df471ded0c564ea83d02f8fbeApprove561517032023-01-28 14:35:471 day 15 mins ago0x56798501ee74cff912e42f757fe3e3349fb225fa IN  Pana DAO: KARSHA Token0 ETH0.00003059
0x0ae8b6317d3030f865d1956365bbe19f8d798592679b2bba495a42c18c52d4b2Transfer556249442023-01-26 14:39:483 days 11 mins ago0x4d549c400bbd7cdd055812cff7e60bca8fbd18c3 IN  Pana DAO: KARSHA Token0 ETH0.00003362
0xd90336c64b0e8f8378fc53ee8cae54d83f41c45b97481281c054fdd210179a1bApprove549770782023-01-23 18:29:565 days 20 hrs ago0x39fe38a5320bf236d229ef2c749c023d096f3c86 IN  Pana DAO: KARSHA Token0 ETH0.00006765
0x66baeb7d895c0f73e9829f5f4ab0e0d94e5179d1d43810a6dc5fe78db853a423Approve546273472023-01-22 2:32:247 days 12 hrs ago0x4d549c400bbd7cdd055812cff7e60bca8fbd18c3 IN  Pana DAO: KARSHA Token0 ETH0.000034
0x5065c688d269e700230cb34691af04e4678554349361b5823dbdf7b7ac55e273Transfer532842522023-01-15 16:16:3613 days 22 hrs ago0x1029f820bb76b3b3e1e03d854c7602734ce8c651 IN  Pana DAO: KARSHA Token0 ETH0.00004883
0x93a07340d08558b8533ba2ef62c6e817532b52586a897a557a6c9d311f539af5Transfer530307582023-01-14 13:50:2115 days 1 hr ago0x1029f820bb76b3b3e1e03d854c7602734ce8c651 IN  Pana DAO: KARSHA Token0 ETH0.00003132
0x31765a833e2ff465a23c9ca8418b7e864aa2aa4916bea05afc3ffed225b52e26Transfer530303392023-01-14 13:48:0915 days 1 hr ago0x1029f820bb76b3b3e1e03d854c7602734ce8c651 IN  Pana DAO: KARSHA Token0 ETH0.0000343
0xe1473a8285b9b3ce70392a013ac27b873b4aa7253e9db50eb3ac8fad62934bc5Approve523739692023-01-11 19:10:0517 days 19 hrs ago0x8567eff4f7b8cf733976ff4839c915ff5995c943 IN  Pana DAO: KARSHA Token0 ETH0.00005926
0x4f0dc5cac9b34dc88f0a00d4265b172ab0fe8644a9ac5bcc98da43f392cba658Approve502266002023-01-01 22:41:3227 days 16 hrs ago0x3028872d2cd31517524121940c914099337f1b7e IN  Pana DAO: KARSHA Token0 ETH0.00003213
0x16131f855eb3e8733061a6ebb556adb140f0e9620abc9ab678f821a408310dacApprove500748542022-12-31 21:59:3828 days 16 hrs ago0xa8d0b012e7266cf49f1f86681f484032d184512c IN  Pana DAO: KARSHA Token0 ETH0.00003369
0xe1fab94899aa3624a4c7ca6e12815bb942f6de5f976903ab45e60baa66019344Approve463969262022-12-15 14:39:2645 days 11 mins ago0x0acc0a8f5db08e2836f171aaad599dd5a23590c5 IN  Pana DAO: KARSHA Token0 ETH0.00004004
0xffd72b72df7b2b67b2437e4d64191d0d70cbca30f05eeeb190ccd681a91f963bApprove463966312022-12-15 14:38:0545 days 12 mins ago0xaddeea1343017b7624b9eec146c1c487df6d338e IN  Pana DAO: KARSHA Token0 ETH0.00004024
0x8f7ae4e8a1143dd8ab86b22aac04a5cf88a66563c6811948063a7e08ac478d13Approve448468342022-12-09 12:53:2351 days 1 hr ago0xadd90f648aeefb2b23896a6f3fece1cbdbca740e IN  Pana DAO: KARSHA Token0 ETH0.00002777
0x8aabca8c365672760f7876d551ba055078d91c4e6d54494cf67058249b2975c2Approve438307742022-12-05 14:38:5055 days 12 mins ago0x3b6942d1c31d7095d65f023656427f0714184b69 IN  Pana DAO: KARSHA Token0 ETH0.00002084
0x872b34ff5619be42d028be4a33325b0c4a3b3ab9fba7b138264cccde104ceb00Approve424563942022-11-30 14:10:3260 days 40 mins ago0x01eb8c8d63c73ecaea17e1901a8d1e66fee93f71 IN  Pana DAO: KARSHA Token0 ETH0.0000191
0xa88723788d5827ed0dada10a7cd2fef323271037c0f5255361bf668aee1ab38cApprove414425122022-11-26 19:02:3963 days 19 hrs ago0x6fb3aab5102109c2e3982419c2b033667e7e065e IN  Pana DAO: KARSHA Token0 ETH0.00001961
0xe73bc12f723f79a9141836273e9afe1388a72d62a8cc8eb51a522fdb4c5c1ec3Transfer404464162022-11-23 4:59:2567 days 9 hrs ago0xdabc0f2c11b9871c1d648b51b88b77fbe6527a7f IN  Pana DAO: KARSHA Token0 ETH0.00002087
0x6d941911ffc7a7ff8ddbaa3ad5a2846f7453af5e018e1fa3b8702bb6562cfa8cApprove380735622022-11-14 16:45:5975 days 22 hrs ago0x3154986d78557459e127b06f5314af3a4beeedb1 IN  Pana DAO: KARSHA Token0 ETH0.00003458
0x5a56c97029698021d623c31868376fef9d45497d890b9e4ec57b9604219493b6Approve352669742022-11-04 19:04:0585 days 19 hrs ago0x1029f820bb76b3b3e1e03d854c7602734ce8c651 IN  Pana DAO: KARSHA Token0 ETH0.00003508
0xb4ed056ff1aaf416dc22567e7cae6a526bb8132fb8fcd5f21ef2bbb3f3e03979Approve339596022022-10-30 18:11:4590 days 20 hrs ago0x33b782bbba441db5e5a804db5a8cdeba4e2cfd4b IN  Pana DAO: KARSHA Token0 ETH0.00001589
0xc1be6635e6922a8f4682d56c531b54202169d028ef4188d3fb53fe1d0585116cApprove336357772022-10-29 14:27:1692 days 23 mins ago0x31979b444fd1a6de7f0a7cb6f6fc1aabd68f9ee6 IN  Pana DAO: KARSHA Token0 ETH0.00002377
0x593509ef350bd1f5ac7dc485a19467f37aca3b109d358d7076f886343cdef05eApprove324985212022-10-25 15:25:5695 days 23 hrs ago0xf87b432390d9cbc8adc317bf5282f44dd43b8b13 IN  Pana DAO: KARSHA Token0 ETH0.00004045
0xf2102334f36501713754c1722d97fe36a3f48c4c2f9d54a0d7c7ce05a32e8190Approve315151692022-10-21 11:54:27100 days 2 hrs ago0xefc61d46231deea88854b3bc31205c19b00adac7 IN  Pana DAO: KARSHA Token0 ETH0.00003443
0xfc05f2aeac9fe4ec9ad1ffc25c996c2663a96c2d946718ed47d7f1c7a8fb90a9Approve291225152022-10-08 15:44:01112 days 23 hrs ago0x988b36094d4efc2412da8583cb53e14ee775bb22 IN  Pana DAO: KARSHA Token0 ETH0.00001525
0xea008392565dcac379b5b5299d43ff604341bb99b9c425a3ec9e286215ba03bcApprove283793122022-10-04 18:54:53116 days 19 hrs ago0xb084cb1a5861b342411d8641f89c864f59fa9698 IN  Pana DAO: KARSHA Token0 ETH0.00003327
[ Download CSV Export 

OVERVIEW

Pana is a decentralized finance protocol which offers parametric insurance leveraging NFT technology and programmable syndicates model. Karsha is a rebasing, governance token which can be purchased by bonding with Pana DAO.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0x2470afe23390edd072479f0a2d610ace1b39eaba Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0x6baf949be348f6df135df9dc15102971654749fe Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0x6baf949be348f6df135df9dc15102971654749fe Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0x6baf949be348f6df135df9dc15102971654749fe Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093 Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093 Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0x6baf949be348f6df135df9dc15102971654749fe Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0x6baf949be348f6df135df9dc15102971654749fe Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093 Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093 Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093 Pana DAO: KARSHA Token0 ETH
0xf709d7ff06d3bdf23c9b8c56e6c0f84003d379961c6d623df36f27edd010b7ab561522312023-01-28 14:38:341 day 12 mins ago 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093 Pana DAO: KARSHA Token0 ETH
0x3d3fe655f04792e423bff171da39a4e6fd0b394c939d51c0525ecaf5b6bc33ff561517442023-01-28 14:35:591 day 14 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0x3d3fe655f04792e423bff171da39a4e6fd0b394c939d51c0525ecaf5b6bc33ff561517442023-01-28 14:35:591 day 14 mins ago 0x6baf949be348f6df135df9dc15102971654749fe Pana DAO: KARSHA Token0 ETH
0x3d3fe655f04792e423bff171da39a4e6fd0b394c939d51c0525ecaf5b6bc33ff561517442023-01-28 14:35:591 day 14 mins ago 0x6baf949be348f6df135df9dc15102971654749fe Pana DAO: KARSHA Token0 ETH
0x3d3fe655f04792e423bff171da39a4e6fd0b394c939d51c0525ecaf5b6bc33ff561517442023-01-28 14:35:591 day 14 mins ago Pana DAO: KARSHA Token 0xc2786a608b8ba6f9df87d8e0b8777bf158b610930 ETH
0x3d3fe655f04792e423bff171da39a4e6fd0b394c939d51c0525ecaf5b6bc33ff561517442023-01-28 14:35:591 day 14 mins ago 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093 Pana DAO: KARSHA Token0 ETH
0x3d3fe655f04792e423bff171da39a4e6fd0b394c939d51c0525ecaf5b6bc33ff561517442023-01-28 14:35:591 day 14 mins ago 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093 Pana DAO: KARSHA Token0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Karsha

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : PanaAccessControlled.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.7.5;

import "../interfaces/IPanaAuthority.sol";

abstract contract PanaAccessControlled {

    /* ========== EVENTS ========== */

    event AuthorityUpdated(IPanaAuthority indexed authority);

    string UNAUTHORIZED = "UNAUTHORIZED"; // save gas

    /* ========== STATE VARIABLES ========== */

    IPanaAuthority public authority;


    /* ========== Constructor ========== */

    constructor(IPanaAuthority _authority) {
        authority = _authority;
        emit AuthorityUpdated(_authority);
    }
    

    /* ========== MODIFIERS ========== */
    
    modifier onlyGovernor() {
        require(msg.sender == authority.governor(), UNAUTHORIZED);
        _;
    }
    
    modifier onlyGuardian() {
        require(msg.sender == authority.guardian(), UNAUTHORIZED);
        _;
    }
    
    modifier onlyPolicy() {
        require(msg.sender == authority.policy(), UNAUTHORIZED);
        _;
    }

    modifier onlyVault() {
        require(msg.sender == authority.vault(), UNAUTHORIZED);
        _;
    }
    
    /* ========== GOV ONLY ========== */
    
    function setAuthority(IPanaAuthority _newAuthority) external onlyGovernor {
        authority = _newAuthority;
        emit AuthorityUpdated(_newAuthority);
    }
}

File 2 of 9 : IERC20.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IERC20 {
  /**
   * @dev Returns the amount of tokens in existence.
   */
  function totalSupply() external view returns (uint256);

  /**
   * @dev Returns the amount of tokens owned by `account`.
   */
  function balanceOf(address account) external view returns (uint256);

  /**
   * @dev Moves `amount` tokens from the caller's account to `recipient`.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transfer(address recipient, uint256 amount) external returns (bool);

  /**
   * @dev Returns the remaining number of tokens that `spender` will be
   * allowed to spend on behalf of `owner` through {transferFrom}. This is
   * zero by default.
   *
   * This value changes when {approve} or {transferFrom} are called.
   */
  function allowance(address owner, address spender) external view returns (uint256);

  /**
   * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * IMPORTANT: 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
   *
   * Emits an {Approval} event.
   */
  function approve(address spender, uint256 amount) external returns (bool);

  /**
   * @dev Moves `amount` tokens from `sender` to `recipient` using the
   * allowance mechanism. `amount` is then deducted from the caller's
   * allowance.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

  /**
   * @dev Emitted when `value` tokens are moved from one account (`from`) to
   * another (`to`).
   *
   * Note that `value` may be zero.
   */
  event Transfer(address indexed from, address indexed to, uint256 value);

  /**
   * @dev Emitted when the allowance of a `spender` for an `owner` is set by
   * a call to {approve}. `value` is the new allowance.
   */
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 3 of 9 : IKarsha.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./IERC20.sol";

interface IKarsha is IERC20 {
  function mint(address _to, uint256 _amount) external;

  function burn(address _from, uint256 _amount) external;

  function index() external view returns (uint256);
  
  function balanceOfPANA(address _address) external view returns (uint256);

  function balanceFrom(uint256 _amount) external view returns (uint256);

  function balanceTo(uint256 _amount) external view returns (uint256);

  function transfer(address _to,uint256 _amount) external override returns (bool);
  function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool);
}

File 4 of 9 : IPanaAuthority.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IPanaAuthority {
    /* ========== EVENTS ========== */
    
    event GovernorPushed(address indexed from, address indexed to, bool _effectiveImmediately);
    event GuardianPushed(address indexed from, address indexed to, bool _effectiveImmediately);
    event PolicyPushed(address indexed from, address indexed to, bool _effectiveImmediately);
    event VaultPushed(address indexed from, address indexed to, bool _effectiveImmediately);
    event DistributionVaultPushed(address indexed from, address indexed to, bool _effectiveImmediately); 

    event GovernorPulled(address indexed from, address indexed to);
    event GuardianPulled(address indexed from, address indexed to);
    event PolicyPulled(address indexed from, address indexed to);
    event VaultPulled(address indexed from, address indexed to);
    event DistributionVaultPulled(address indexed from, address indexed to);

    /* ========== VIEW ========== */
    
    function governor() external view returns (address);
    function guardian() external view returns (address);
    function policy() external view returns (address);
    function vault() external view returns (address);
    function distributionVault() external view returns (address);
}

File 5 of 9 : IsPana.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./IERC20.sol";

interface IsPana is IERC20 {
    function rebase( uint256 panaProfit_, uint epoch_) external returns (uint256);

    function circulatingSupply() external view returns (uint256);

    function gonsForBalance( uint amount ) external view returns ( uint );

    function balanceForGons( uint gons ) external view returns ( uint );

    function index() external view returns ( uint );

    function toKARSHA(uint amount) external view returns (uint);

    function fromKARSHA(uint amount) external view returns (uint);
    
}

File 6 of 9 : Address.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;


// TODO(zx): replace with OZ implementation.
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    // function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
    //     require(address(this).balance >= value, "Address: insufficient balance for call");
    //     return _functionCallWithValue(target, data, value, errorMessage);
    // }
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }

  /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }

    function addressToString(address _address) internal pure returns(string memory) {
        bytes32 _bytes = bytes32(uint256(_address));
        bytes memory HEX = "0123456789abcdef";
        bytes memory _addr = new bytes(42);

        _addr[0] = '0';
        _addr[1] = 'x';

        for(uint256 i = 0; i < 20; i++) {
            _addr[2+i*2] = HEX[uint8(_bytes[i + 12] >> 4)];
            _addr[3+i*2] = HEX[uint8(_bytes[i + 12] & 0x0f)];
        }

        return string(_addr);

    }
}

File 7 of 9 : SafeMath.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;


// TODO(zx): Replace all instances of SafeMath with OZ implementation
library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

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

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    // Only used in the  BondingCalculator.sol
    function sqrrt(uint256 a) internal pure returns (uint c) {
        if (a > 3) {
            c = a;
            uint b = add( div( a, 2), 1 );
            while (b < c) {
                c = b;
                b = div( add( div( a, b ), b), 2 );
            }
        } else if (a != 0) {
            c = 1;
        }
    }

}

File 8 of 9 : Karsha.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "../../libraries/SafeMath.sol";
import "../../libraries/Address.sol";

import "../../interfaces/IsPana.sol";
import "../../interfaces/IKarsha.sol";
import "../../types/ERC20.sol";
import "../../access/PanaAccessControlled.sol";

contract Karsha is IKarsha, ERC20, PanaAccessControlled {

    /* ========== DEPENDENCIES ========== */

    using Address for address;
    using SafeMath for uint256;

    /* ========== MODIFIERS ========== */

    modifier onlyStaking() {
        require(msg.sender == staking, "Only Staking");
        _;
    }

    /* ========== EVENTS ========== */

    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    /* ========== DATA STRUCTURES ========== */

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint256 fromBlock;
        uint256 votes;
    }

    /* ========== STATE VARIABLES ========== */

    IsPana public sPANA;
    address public staking; // minter

    mapping(address => mapping(uint256 => Checkpoint)) public checkpoints;
    mapping(address => uint256) public numCheckpoints;
    mapping(address => address) public delegates;

    /* ========== CONSTRUCTOR ========== */

    constructor(address _staking, address _sPana, address _authority)
        ERC20("Karsha", "KARSHA", 18)
        PanaAccessControlled(IPanaAuthority(_authority))
    {
        require(_sPana != address(0), "Zero address: sPANA");
        sPANA = IsPana(_sPana);
    }

    function setStaking(address _newStaking) external onlyGovernor {
        require(_newStaking != address(0), "Zero address found: Staking");
        staking = _newStaking;
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
        @notice mint KARSHA
        @param _to address
        @param _amount uint
     */
    function mint(address _to, uint256 _amount) external override onlyStaking {
        _mint(_to, _amount);
    }

    /**
        @notice burn KARSHA
        @param _from address
        @param _amount uint
     */
    function burn(address _from, uint256 _amount) external override onlyStaking {
        require(balanceOf(_from) >= _amount, "ERC20: burn amount exceeds balance");
        _burn(_from, _amount);
    }

    /**
        @notice transfer KARSHA
        @param _to address
        @param _amount uint
     */
    function transfer(address _to, uint256 _amount) public override(IKarsha,ERC20) returns (bool){
        require(balanceOf(msg.sender) >= _amount, "ERC20: transfer amount exceeds balance");                 
        return super.transfer(_to,_amount);
    }

    /**
        @notice transferFrom KARSHA
        @param sender address
        @param recipient address
        @param amount uint
     */
    function transferFrom(address sender, address recipient, uint256 amount) public override(IKarsha,ERC20) returns (bool) {
        require(balanceOf(sender) >= amount, "ERC20: transfer amount exceeds balance");  
        return super.transferFrom(sender,recipient,amount);
    }

    /* ========== VIEW FUNCTIONS ========== */

    /**
     * @notice pull index from sPANA token
     */
    function index() public view override returns (uint256) {
        return sPANA.index();
    }

    /**
        @notice converts KARSHA balance to PANA
        @param _address address
        @return uint
     */
    function balanceOfPANA(address _address) public view override returns (uint256) {
        return balanceFrom(balanceOf(_address));
    }

    /**
        @notice converts KARSHA amount to PANA
        @param _amount uint
        @return uint
     */
    function balanceFrom(uint256 _amount) public view override returns (uint256) {
        return _amount.mul(index()).div(10**decimals());
    }

    /**
        @notice converts PANA amount to KARSHA
        @param _amount uint
        @return uint
     */
    function balanceTo(uint256 _amount) public view override returns (uint256) {
        return _amount.mul(10**decimals()).div(index());
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account) external view returns (uint256) {
        uint256 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint256 blockNumber) external view returns (uint256) {
        require(blockNumber < block.number, "KARSHA::getPriorVotes: not yet determined");

        uint256 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint256 lower = 0;
        uint256 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint256 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    function _delegate(address delegator, address delegatee) internal {
        address currentDelegate = delegates[delegator];
        uint256 delegatorBalance = _balances[delegator];
        delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(
        address srcRep,
        address dstRep,
        uint256 amount
    ) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint256 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint256 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint256 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    ) internal {
        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == block.number) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(block.number, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    /**
        @notice Ensure delegation moves when token is transferred.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        _moveDelegates(delegates[from], delegates[to], amount);
    }
}

File 9 of 9 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity >=0.7.5;

import "../libraries/SafeMath.sol";

import "../interfaces/IERC20.sol";


abstract contract ERC20 is IERC20 {

    using SafeMath for uint256;

    // TODO comment actual hash value.
    bytes32 constant private ERC20TOKEN_ERC1820_INTERFACE_ID = keccak256( "ERC20Token" );
    
    mapping (address => uint256) internal _balances;

    mapping (address => mapping (address => uint256)) internal _allowances;

    uint256 internal _totalSupply;

    string internal _name;
    
    string internal _symbol;
    
    uint8 internal immutable _decimals;

    constructor (string memory name_, string memory symbol_, uint8 decimals_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);        
        emit Transfer(sender, recipient, amount);
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
        _beforeTokenTransfer(address(0), account, amount);
        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

  function _beforeTokenTransfer( address from_, address to_, uint256 amount_ ) internal virtual { }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_sPana","type":"address"},{"internalType":"address","name":"_authority","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IPanaAuthority","name":"authority","type":"address"}],"name":"AuthorityUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"authority","outputs":[{"internalType":"contract IPanaAuthority","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"balanceFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"balanceOfPANA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"balanceTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"checkpoints","outputs":[{"internalType":"uint256","name":"fromBlock","type":"uint256"},{"internalType":"uint256","name":"votes","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"index","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sPANA","outputs":[{"internalType":"contract IsPana","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IPanaAuthority","name":"_newAuthority","type":"address"}],"name":"setAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newStaking","type":"address"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60e0604052600c60a08190526b15539055551213d49256915160a21b60c09081526200002f9160059190620001d5565b503480156200003d57600080fd5b5060405162001e7338038062001e73833981810160405260608110156200006357600080fd5b508051602080830151604093840151845180860186526006808252654b617273686160d01b8286019081528751808901909852908752654b415253484160d01b94870194909452805194959294919384939192601291620000c89160039190620001d5565b508151620000de906004906020850190620001d5565b5060f81b7fff00000000000000000000000000000000000000000000000000000000000000166080525050600680546001600160a01b0319166001600160a01b0383169081179091556040517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad90600090a2506001600160a01b038216620001ad576040805162461bcd60e51b815260206004820152601360248201527f5a65726f20616464726573733a207350414e4100000000000000000000000000604482015290519081900360640190fd5b50600780546001600160a01b0319166001600160a01b03929092169190911790555062000281565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200020d576000855562000258565b82601f106200022857805160ff191683800117855562000258565b8280016001018555821562000258579182015b82811115620002585782518255916020019190600101906200023b565b50620002669291506200026a565b5090565b5b808211156200026657600081556001016200026b565b60805160f81c611bd46200029f600039806107ca5250611bd46000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063a457c2d711610097578063b4b5ea5711610071578063b4b5ea571461059d578063bf7e214f146105c3578063dd62ed3e146105cb578063fa8d1820146105f9576101c4565b8063a457c2d714610528578063a824876814610554578063a9059cbb14610571576101c4565b80638ff39099116100d35780638ff39099146104c657806395d89b41146104ec5780639dc29fac146104f45780639fef32cc14610520576101c4565b806370a082311461044e578063782d6fe1146104745780637a9e5e4b146104a0576101c4565b80633950935111610166578063587cde1e11610140578063587cde1e146103bf5780635c19a95c146103e557806366a5236c1461040b5780636fcfff4514610428576101c4565b8063395093511461034157806340c10f191461036d5780634cf088d91461039b576101c4565b806318160ddd116101a257806318160ddd146102cb57806323b872dd146102e55780632986c0e51461031b578063313ce56714610323576101c4565b806306fdde03146101c9578063095ea7b3146102465780630cdfebfa14610286575b600080fd5b6101d161061f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561020b5781810151838201526020016101f3565b50505050905090810190601f1680156102385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102726004803603604081101561025c57600080fd5b506001600160a01b0381351690602001356106b5565b604080519115158252519081900360200190f35b6102b26004803603604081101561029c57600080fd5b506001600160a01b0381351690602001356106cc565b6040805192835260208301919091528051918290030190f35b6102d36106f0565b60408051918252519081900360200190f35b610272600480360360608110156102fb57600080fd5b506001600160a01b038135811691602081013590911690604001356106f6565b6102d3610752565b61032b6107c8565b6040805160ff9092168252519081900360200190f35b6102726004803603604081101561035757600080fd5b506001600160a01b0381351690602001356107ec565b6103996004803603604081101561038357600080fd5b506001600160a01b038135169060200135610827565b005b6103a3610883565b604080516001600160a01b039092168252519081900360200190f35b6103a3600480360360208110156103d557600080fd5b50356001600160a01b0316610892565b610399600480360360208110156103fb57600080fd5b50356001600160a01b03166108ad565b6102d36004803603602081101561042157600080fd5b50356108ba565b6102d36004803603602081101561043e57600080fd5b50356001600160a01b03166108e5565b6102d36004803603602081101561046457600080fd5b50356001600160a01b03166108f7565b6102d36004803603604081101561048a57600080fd5b506001600160a01b038135169060200135610912565b610399600480360360208110156104b657600080fd5b50356001600160a01b0316610ad4565b610399600480360360208110156104dc57600080fd5b50356001600160a01b0316610c51565b6101d1610dc7565b6103996004803603604081101561050a57600080fd5b506001600160a01b038135169060200135610e28565b6103a3610ec7565b6102726004803603604081101561053e57600080fd5b506001600160a01b038135169060200135610ed6565b6102d36004803603602081101561056a57600080fd5b5035610f25565b6102726004803603604081101561058757600080fd5b506001600160a01b038135169060200135610f4a565b6102d3600480360360208110156105b357600080fd5b50356001600160a01b0316610fa4565b6103a3610ffb565b6102d3600480360360408110156105e157600080fd5b506001600160a01b038135811691602001351661100a565b6102d36004803603602081101561060f57600080fd5b50356001600160a01b0316611035565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106ab5780601f10610680576101008083540402835291602001916106ab565b820191906000526020600020905b81548152906001019060200180831161068e57829003601f168201915b5050505050905090565b60006106c2338484611048565b5060015b92915050565b60096020908152600092835260408084209091529082529020805460019091015482565b60025490565b600081610702856108f7565b101561073f5760405162461bcd60e51b8152600401808060200182810382526026815260200180611aa16026913960400191505060405180910390fd5b61074a848484611134565b949350505050565b60075460408051632986c0e560e01b815290516000926001600160a01b031691632986c0e5916004808301926020929190829003018186803b15801561079757600080fd5b505afa1580156107ab573d6000803e3d6000fd5b505050506040513d60208110156107c157600080fd5b5051905090565b7f000000000000000000000000000000000000000000000000000000000000000090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106c29185906108229086611198565b611048565b6008546001600160a01b03163314610875576040805162461bcd60e51b815260206004820152600c60248201526b4f6e6c79205374616b696e6760a01b604482015290519081900360640190fd5b61087f82826111f2565b5050565b6008546001600160a01b031681565b600b602052600090815260409020546001600160a01b031681565b6108b733826112e2565b50565b60006106c66108c7610752565b6108df6108d26107c8565b859060ff16600a0a61136e565b906113c7565b600a6020526000908152604090205481565b6001600160a01b031660009081526020819052604090205490565b60004382106109525760405162461bcd60e51b8152600401808060200182810382526029815260200180611ac76029913960400191505060405180910390fd5b6001600160a01b0383166000908152600a60205260409020548061097a5760009150506106c6565b6001600160a01b03841660009081526009602090815260408083206000198501845290915290205483106109da576001600160a01b03841660009081526009602090815260408083206000199094018352929052206001015490506106c6565b6001600160a01b0384166000908152600960209081526040808320838052909152902054831015610a0f5760009150506106c6565b600060001982015b81811115610aa4576002828203048103610a2f611a1f565b506001600160a01b03871660009081526009602090815260408083208484528252918290208251808401909352805480845260019091015491830191909152871415610a85576020015194506106c69350505050565b8051871115610a9657819350610a9d565b6001820392505b5050610a17565b506001600160a01b0385166000908152600960209081526040808320938352929052206001015491505092915050565b600660009054906101000a90046001600160a01b03166001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2257600080fd5b505afa158015610b36573d6000803e3d6000fd5b505050506040513d6020811015610b4c57600080fd5b50516005906001600160a01b03163314610bf95760405162461bcd60e51b8152602060048201908152825460026000196101006001841615020190911604602483018190529091829160449091019084908015610bea5780601f10610bbf57610100808354040283529160200191610bea565b820191906000526020600020905b815481529060010190602001808311610bcd57829003601f168201915b50509250505060405180910390fd5b506006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad90600090a250565b600660009054906101000a90046001600160a01b03166001600160a01b0316630c340a246040518163ffffffff1660e01b815260040160206040518083038186803b158015610c9f57600080fd5b505afa158015610cb3573d6000803e3d6000fd5b505050506040513d6020811015610cc957600080fd5b50516005906001600160a01b03163314610d3c5760405162461bcd60e51b8152602060048201908152825460026000196101006001841615020190911604602483018190529091829160449091019084908015610bea5780601f10610bbf57610100808354040283529160200191610bea565b506001600160a01b038116610d98576040805162461bcd60e51b815260206004820152601b60248201527f5a65726f206164647265737320666f756e643a205374616b696e670000000000604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106ab5780601f10610680576101008083540402835291602001916106ab565b6008546001600160a01b03163314610e76576040805162461bcd60e51b815260206004820152600c60248201526b4f6e6c79205374616b696e6760a01b604482015290519081900360640190fd5b80610e80836108f7565b1015610ebd5760405162461bcd60e51b8152600401808060200182810382526022815260200180611a5d6022913960400191505060405180910390fd5b61087f8282611409565b6007546001600160a01b031681565b60006106c2338461082285604051806060016040528060258152602001611ba3602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611505565b60006106c6610f326107c8565b60ff16600a0a6108df610f43610752565b859061136e565b600081610f56336108f7565b1015610f935760405162461bcd60e51b8152600401808060200182810382526026815260200180611aa16026913960400191505060405180910390fd5b610f9d838361159c565b9392505050565b6001600160a01b0381166000908152600a602052604081205480610fc9576000610f9d565b6001600160a01b0383166000908152600960209081526040808320600019850184529091529020600101549392505050565b6006546001600160a01b031681565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60006106c6611043836108f7565b610f25565b6001600160a01b03831661108d5760405162461bcd60e51b8152600401808060200182810382526024815260200180611b7f6024913960400191505060405180910390fd5b6001600160a01b0382166110d25760405162461bcd60e51b8152600401808060200182810382526022815260200180611a7f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006111418484846115a5565b61118e843361082285604051806060016040528060288152602001611b11602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190611505565b5060019392505050565b600082820183811015610f9d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b03821661124d576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61125960008383611700565b6002546112669082611198565b6002556001600160a01b03821660009081526020819052604090205461128c9082611198565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038083166000818152600b602081815260408084208054858452828620549490935287871673ffffffffffffffffffffffffffffffffffffffff198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611368828483611737565b50505050565b60008261137d575060006106c6565b8282028284828161138a57fe5b0414610f9d5760405162461bcd60e51b8152600401808060200182810382526021815260200180611af06021913960400191505060405180910390fd5b6000610f9d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611864565b6001600160a01b03821661144e5760405162461bcd60e51b8152600401808060200182810382526021815260200180611b396021913960400191505060405180910390fd5b61145a82600083611700565b61149781604051806060016040528060228152602001611a5d602291396001600160a01b0385166000908152602081905260409020549190611505565b6001600160a01b0383166000908152602081905260409020556002546114bd90826118d8565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600081848411156115945760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611559578181015183820152602001611541565b50505050905090810190601f1680156115865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60006106c23384845b6001600160a01b0383166115ea5760405162461bcd60e51b8152600401808060200182810382526025815260200180611b5a6025913960400191505060405180910390fd5b6001600160a01b03821661162f5760405162461bcd60e51b8152600401808060200182810382526023815260200180611a3a6023913960400191505060405180910390fd5b61163a838383611700565b61167781604051806060016040528060268152602001611aa1602691396001600160a01b0386166000908152602081905260409020549190611505565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546116a69082611198565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6001600160a01b038084166000908152600b602052604080822054858416835291205461173292918216911683611737565b505050565b816001600160a01b0316836001600160a01b0316141580156117595750600081115b15611732576001600160a01b038316156117df576001600160a01b0383166000908152600a602052604081205490816117935760006117bf565b6001600160a01b0385166000908152600960209081526040808320600019860184529091529020600101545b905060006117cd82856118d8565b90506117db8684848461191a565b5050505b6001600160a01b03821615611732576001600160a01b0382166000908152600a60205260408120549081611814576000611840565b6001600160a01b0384166000908152600960209081526040808320600019860184529091529020600101545b9050600061184e8285611198565b905061185c8584848461191a565b505050505050565b600081836118b35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611559578181015183820152602001611541565b5060008385816118bf57fe5b0490508385816118cb57fe5b0681850201851461074a57fe5b6000610f9d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611505565b60008311801561195057506001600160a01b03841660009081526009602090815260408083206000198701845290915290205443145b15611987576001600160a01b03841660009081526009602090815260408083206000198701845290915290206001018190556119d6565b60408051808201825243815260208082018481526001600160a01b03881660008181526009845285812089825284528581209451855591516001948501558152600a9091529190912090840190555b604080518381526020810183905281516001600160a01b038716927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a250505050565b60405180604001604052806000815260200160008152509056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654b41525348413a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa164736f6c6343000705000a00000000000000000000000002a3babda298d348dea69da98b2f6a7f4df31e42000000000000000000000000c2786a608b8ba6f9df87d8e0b8777bf158b61093000000000000000000000000cc654fbb3c1b12be82d36bc9c7e1ce075a422f80

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

00000000000000000000000002a3babda298d348dea69da98b2f6a7f4df31e42000000000000000000000000c2786a608b8ba6f9df87d8e0b8777bf158b61093000000000000000000000000cc654fbb3c1b12be82d36bc9c7e1ce075a422f80

-----Decoded View---------------
Arg [0] : _staking (address): 0x02a3babda298d348dea69da98b2f6a7f4df31e42
Arg [1] : _sPana (address): 0xc2786a608b8ba6f9df87d8e0b8777bf158b61093
Arg [2] : _authority (address): 0xcc654fbb3c1b12be82d36bc9c7e1ce075a422f80

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000002a3babda298d348dea69da98b2f6a7f4df31e42
Arg [1] : 000000000000000000000000c2786a608b8ba6f9df87d8e0b8777bf158b61093
Arg [2] : 000000000000000000000000cc654fbb3c1b12be82d36bc9c7e1ce075a422f80


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.