FTM Price: $0.99 (-3.70%)
Gas: 40 GWei

Contract

0x622265EaB66A45FA05bAc9B8d2262AA548FA449E
 

Multichain Info

Transaction Hash
Method
Block
From
To
Value
Approve781783822024-03-25 23:44:353 days ago1711410275IN
ProtoFi: ELCT Token
0 FTM0.0021307783
Approve781783782024-03-25 23:44:313 days ago1711410271IN
ProtoFi: ELCT Token
0 FTM0.0021296983
Approve781783702024-03-25 23:44:213 days ago1711410261IN
ProtoFi: ELCT Token
0 FTM0.0021307783
Approve781783622024-03-25 23:44:153 days ago1711410255IN
ProtoFi: ELCT Token
0 FTM0.0021307783
Approve779651792024-03-22 13:13:356 days ago1711113215IN
ProtoFi: ELCT Token
0 FTM0.00424703175.43210194
Approve779602332024-03-22 11:58:166 days ago1711108696IN
ProtoFi: ELCT Token
0 FTM0.00354094138
Approve779601592024-03-22 11:57:206 days ago1711108640IN
ProtoFi: ELCT Token
0 FTM0.00354273138
Approve778275162024-03-20 21:04:218 days ago1710968661IN
ProtoFi: ELCT Token
0 FTM0.02926271,208.15439211
Approve778272182024-03-20 20:59:588 days ago1710968398IN
ProtoFi: ELCT Token
0 FTM0.029699141,226.17330448
Approve778270332024-03-20 20:57:018 days ago1710968221IN
ProtoFi: ELCT Token
0 FTM0.028343211,170.77172242
Approve772250422024-03-12 21:28:2216 days ago1710278902IN
ProtoFi: ELCT Token
0 FTM0.0007184528
Approve768299352024-03-06 4:02:1323 days ago1709697733IN
ProtoFi: ELCT Token
0 FTM0.0020651785.3062559
Approve767319902024-03-04 15:36:0524 days ago1709566565IN
ProtoFi: ELCT Token
0 FTM0.00318171124
Approve766555102024-03-03 11:37:2925 days ago1709465849IN
ProtoFi: ELCT Token
0 FTM0.0005134420
Approve766554902024-03-03 11:36:2025 days ago1709465780IN
ProtoFi: ELCT Token
0 FTM0.0005391121
Approve766384802024-03-02 19:02:5326 days ago1709406173IN
ProtoFi: ELCT Token
0 FTM0.00828785323
Approve766384272024-03-02 19:00:1326 days ago1709406013IN
ProtoFi: ELCT Token
0 FTM0.00829205323
Swap To Proton764652652024-02-28 17:21:2629 days ago1709140886IN
ProtoFi: ELCT Token
0 FTM0.02532166472.6483
Swap To Proton764652652024-02-28 17:21:2629 days ago1709140886IN
ProtoFi: ELCT Token
0 FTM0.085999551,605.248
Swap To Proton764652652024-02-28 17:21:2629 days ago1709140886IN
ProtoFi: ELCT Token
0 FTM0.17706231,662.4944
Approve762062482024-02-24 10:46:2733 days ago1708771587IN
ProtoFi: ELCT Token
0 FTM0.00246664101.83895705
Approve759877882024-02-20 9:12:0438 days ago1708420324IN
ProtoFi: ELCT Token
0 FTM0.0007188128
Approve759877802024-02-20 9:11:3838 days ago1708420298IN
ProtoFi: ELCT Token
0 FTM0.0007184528
Approve759877662024-02-20 9:10:3538 days ago1708420235IN
ProtoFi: ELCT Token
0 FTM0.0007188128
Approve759668482024-02-19 19:56:4138 days ago1708372601IN
ProtoFi: ELCT Token
0 FTM0.0010612122.72847525
View all transactions

Latest 1 internal transaction

Parent Txn Hash Block From To Value
275954002022-01-10 23:11:57808 days ago1641856317  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ElectronToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : ElectronToken.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.6.12;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "./libs/ProtofiERC20.sol";
import "./interfaces/IMoneyPot.sol";

/**
This is the contract of the secondary token.

Features:
- Ownable
- Keeps track of every holder
- Can be swapped for the primary tokens
- Keeps track of the penalty over time to swap this token for the primary token

Owner --> Masterchef for farming features
 */
contract ElectronToken is ProtofiERC20("Electron Token", "ELCT") {
    using SafeMath for uint256;

    struct HolderInfo {
        uint256 avgTransactionBlock;
    }

    ProtofiERC20 public proton;
    bool private _isProtonSetup = false;

    IMoneyPot public moneyPot;
    bool private _isMoneyPotSetup = false;

    /// Penalty period expressed in blocks.
    uint256 public immutable SWAP_PENALTY_MAX_PERIOD; // default 288000 blocks (3d*24h*60m*60sec/0.9sec): after 72h penalty of holding electron, swap penalty is at the minimum (zero penalty)
    /// Penalty expressed in percentage points --> e.g. 30 means 30% of penalty
    uint256 public immutable SWAP_PENALTY_MAX_PER_ELCT; // default: 30, 30% => 1 electron = 0.3 proton

    // Keeps track of all the historical holders of Electron
    address[] private holdersAddresses;
    // Keeps track of all the addresses added to holdersAddresses
    mapping (address => bool) public wallets;
    // Keeps track of useful infos for each holder
    mapping(address => HolderInfo) public holdersInfo;

    constructor (uint256 swapPenaltyMaxPeriod, uint256 swapPenaltyMaxPerElectron) public{
        SWAP_PENALTY_MAX_PERIOD = swapPenaltyMaxPeriod;
        SWAP_PENALTY_MAX_PER_ELCT = swapPenaltyMaxPerElectron.mul(1e10);
    }

    /// Sets the reference to the primary token, can be done only once, be careful!
    function setupProton(ProtofiERC20 _proton) external onlyOwner {
        require(!_isProtonSetup, "The Proton token has already been set up. No one can change it anymore.");
        proton = _proton;
        _isProtonSetup = true;
    }

    /// Sets the reference to the MoneyPot, can be done only once, be careful!
    function setupMoneyPot(IMoneyPot _moneyPot) external onlyOwner {
        require(!_isMoneyPotSetup, "The Moneypot has already been set up. No one can change it anymore.");
        moneyPot = _moneyPot;
        _isMoneyPotSetup = true;
    }

    /**
    Calculate the penality for swapping ELCT to PROTO for a user.
    The penality decrease over time (by holding duration).
    From SWAP_PENALTY_MAX_PER_ELCT % to 0% on SWAP_PENALTY_MAX_PERIOD
    */
    function getPenaltyPercent(address _holderAddress) public view returns (uint256){
        HolderInfo storage holderInfo = holdersInfo[_holderAddress];
        if(block.number >= holderInfo.avgTransactionBlock.add(SWAP_PENALTY_MAX_PERIOD)){
            return 0;
        }
        if(block.number == holderInfo.avgTransactionBlock){
            return SWAP_PENALTY_MAX_PER_ELCT;
        }
        uint256 avgHoldingDuration = block.number.sub(holderInfo.avgTransactionBlock);
        return SWAP_PENALTY_MAX_PER_ELCT.sub(
            SWAP_PENALTY_MAX_PER_ELCT.mul(avgHoldingDuration).div(SWAP_PENALTY_MAX_PERIOD)
        );
    }

    /// Allow use to exchange (swap) their electron to proton
    function swapToProton(uint256 _amount) external {
        require(_amount > 0, "amount 0");
        address _from = msg.sender;
        // Get the amount of the primary token to be received
        uint256 protonAmount = _swapProtonAmount( _from, _amount);
        holdersInfo[_from].avgTransactionBlock = _getAvgTransactionBlock(_from, holdersInfo[_from], _amount, true);

        // Burn ELCT and mint PROTO
        super._burn(_from, _amount);

        // Moving delegates with the call to _burn
        emit DelegateChanged(_from, _delegates[_from], _delegates[BURN_ADDRESS]);
        _moveDelegates(_delegates[_from], _delegates[BURN_ADDRESS], _amount);

        proton.mint(_from, protonAmount);

        if (address(moneyPot) != address(0)) {
            moneyPot.updateElectronHolder(_from);
        }
    }

    /**
    @notice Preview swap return in proton with _electronAmount by _holderAddress
    this function is used by front-end to show how much PROTO will be retrieved if _holderAddress swap _electronAmount
    */
    function previewSwapProtonExpectedAmount(address _holderAddress, uint256 _electronAmount) external view returns (uint256 expectedProton){
        return _swapProtonAmount( _holderAddress, _electronAmount);
    }

    /**
    @notice Preview swap return in proton from all the addresses holding ELCT
    This function is used by front-end to show how much PROTO will be generated if all the holders of ELCT swap all ELCTS for PROTOS
    */
    function previewTotalSwapElectronToProton() external view returns (uint256 expectedProton){

        uint256 totalProton = 0;
        // For each holder, update the total PROTOs that can be generated
        for(uint index = 0; index < holdersAddresses.length; index++){
            address tmpaddress = holdersAddresses[index];
            uint256 tmpbalance = balanceOf(tmpaddress);
            totalProton = totalProton.add(_swapProtonAmount(tmpaddress, tmpbalance));
        }
        return totalProton;
    }

    /// @notice Calculate the adjustment for a user if he want to swap _electronAmount to proton
    function _swapProtonAmount(address _holderAddress, uint256 _electronAmount) internal view returns (uint256 expectedProton){
        require(balanceOf(_holderAddress) >= _electronAmount, "Not enough electron");
        uint256 penalty = getPenaltyPercent(_holderAddress);
        if(penalty == 0){
            return _electronAmount;
        }

        return _electronAmount.sub(_electronAmount.mul(penalty).div(1e12));
    }

    /**
    @notice Calculate average deposit/withdraw block for _holderAddress

    @dev The average transaction block is:
    - set to 0 if the user swaps all his electron to proton
    - set to the previous avgTransactionBlock if the user does not swap all his electron
    - is updated if the holder gets new electron
    Basically, avgTransactionBlock is updated to a higher value only if _holderAddress receives new electron,
    otherwise avgTransactionBlock stays the same or go to 0 if everything is swapped or sent.
     */
    function _getAvgTransactionBlock(address _holderAddress, HolderInfo storage holderInfo, uint256 _electronAmount, bool _onWithdraw) internal view returns (uint256){
        if (balanceOf(_holderAddress) == 0) {
            return block.number;
        }
        uint256 minAvgTransactionBlockPossible = block.number.sub(SWAP_PENALTY_MAX_PERIOD);
        uint256 holderAvgTransactionBlock = holderInfo.avgTransactionBlock > minAvgTransactionBlockPossible ? holderInfo.avgTransactionBlock : minAvgTransactionBlockPossible;

        uint256 transactionBlockWeight;
        if (_onWithdraw) {
            if (balanceOf(_holderAddress) == _electronAmount) {
                return 0; // Average transaction block is the lowest possible block
            }
            else {
                return holderAvgTransactionBlock;
            }
        }
        else {
            transactionBlockWeight = (balanceOf(_holderAddress).mul(holderAvgTransactionBlock).add(block.number.mul(_electronAmount)));
        }

        uint256 avgTransactionBlock = transactionBlockWeight.div(balanceOf(_holderAddress).add(_electronAmount));
        return avgTransactionBlock > minAvgTransactionBlockPossible ? avgTransactionBlock : minAvgTransactionBlockPossible;
    }


    /// @notice Creates `_amount` token to `_to`.
    function mint(address _to, uint256 _amount) external virtual override onlyOwner {
        HolderInfo storage holder = holdersInfo[_to];
        // avgTransactionBlock is updated accordingly to the amount minted
        holder.avgTransactionBlock = _getAvgTransactionBlock(_to, holder, _amount, false);

        if(wallets[_to] == false){
            // Add holder to historical holders
            holdersAddresses.push(_to);
            wallets[_to] = true;
        }

        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);

        if (address(moneyPot) != address(0)) {
            moneyPot.updateElectronHolder(_to);
        }
    }

    /// @dev overrides transfer function to meet tokenomics of ELCT
    function _transfer(address _sender, address _recipient, uint256 _amount) internal virtual override {
        holdersInfo[_sender].avgTransactionBlock = _getAvgTransactionBlock(_sender, holdersInfo[_sender], _amount, true);
        if (_recipient == BURN_ADDRESS) {
            super._burn(_sender, _amount);
            if (address(moneyPot) != address(0)) {
                moneyPot.updateElectronHolder(_sender);
            }
        } else {
            holdersInfo[_recipient].avgTransactionBlock = _getAvgTransactionBlock(_recipient, holdersInfo[_recipient], _amount, false);
            super._transfer(_sender, _recipient, _amount);

            if (address(moneyPot) != address(0)) {
                moneyPot.updateElectronHolder(_sender);
                if (_sender != _recipient){
                    moneyPot.updateElectronHolder(_recipient);
                }
            }
        }
        if(wallets[_recipient] == false){
            // Add holder to historical holders
            holdersAddresses.push(_recipient);
            wallets[_recipient] = true;
        }

        // Moving delegates while transferring tokens - Valid also for the _burn call
        emit DelegateChanged(_sender, _delegates[msg.sender], _delegates[_recipient]);
        _moveDelegates(_delegates[msg.sender], _delegates[_recipient], _amount);
    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    /// @dev A record of each accounts delegate
    mapping(address => address) internal _delegates;

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

    /// @notice A record of votes checkpoints for each account, by index
    mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping(address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH =
    keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH =
    keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping(address => uint) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
    external
    view
    returns (address)
    {
        return _delegates[delegator];
    }

    /**
     * @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 Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
    external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "PROTO::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "PROTO::delegateBySig: invalid nonce");
        require(now <= expiry, "PROTO::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @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)
    {
        uint32 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, uint blockNumber)
    external
    view
    returns (uint256)
    {
        require(blockNumber < block.number, "PROTO::getPriorVotes: not yet determined");

        uint32 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;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 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;
    }

    function _delegate(address delegator, address delegatee)
    internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator);
        // balance of underlying PROTOs (not scaled);
        _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)) {
                // decrease old representative
                uint32 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)) {
                // increase new representative
                uint32 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,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
    internal
    {
        uint32 blockNumber = safe32(block.number, "PROTO::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2 ** 32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly {chainId := chainid()}
        return chainId;
    }
}

File 2 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @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;
    }
}

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../GSN/Context.sol";
/**
 * @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 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;
    }
}

File 4 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be 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;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 6 of 8 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
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 on 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");
        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);
    }

    /**
     * @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);
    }

    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);
            }
        }
    }
}

File 7 of 8 : IMoneyPot.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.6.12;

interface IMoneyPot {
    function isDividendsToken(address _tokenAddr) external view returns (bool);
    function getRegisteredTokenLength() external view returns (uint256);
    function depositRewards(address _token, uint256 _amount) external;
    function getRegisteredToken(uint256 index) external view returns (address);
    function updateElectronHolder(address _electronHolder) external;
}

File 8 of 8 : ProtofiERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.6.12;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";

/*
 * @dev Implementation of the {IERC20} interface.
 * This implementation is a copy of @pancakeswap/pancake-swap-lib/contracts/token/ERC20/ERC20.sol
 * with a burn supply management.
 */
contract ProtofiERC20 is Context, IERC20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;
    uint256 private _burnSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address) {
        return owner();
    }

    /**
     * @dev Returns the token name.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {ERC20-totalSupply}.
     */
    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {ERC20-totalSupply}.
     */
    function burnSupply() public view returns (uint256) {
        return _burnSupply;
    }

    /**
     * @dev See {ERC20-balanceOf}.
     */
    function balanceOf(address account) public override view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {ERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {ERC20-allowance}.
     */
    function allowance(address owner, address spender) public override view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {ERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {ERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")
        );
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {ERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {ERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")
        );
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    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");

        _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 _to, uint256 _amount) external virtual onlyOwner{
        _mint(_to, _amount);
    }
    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != BURN_ADDRESS, "ERC20: burn from the zero address");

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        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);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller"s allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")
        );
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"swapPenaltyMaxPeriod","type":"uint256"},{"internalType":"uint256","name":"swapPenaltyMaxPerElectron","type":"uint256"}],"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":"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_PENALTY_MAX_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_PENALTY_MAX_PER_ELCT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"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":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","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":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holderAddress","type":"address"}],"name":"getPenaltyPercent","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":"","type":"address"}],"name":"holdersInfo","outputs":[{"internalType":"uint256","name":"avgTransactionBlock","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":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"moneyPot","outputs":[{"internalType":"contract IMoneyPot","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holderAddress","type":"address"},{"internalType":"uint256","name":"_electronAmount","type":"uint256"}],"name":"previewSwapProtonExpectedAmount","outputs":[{"internalType":"uint256","name":"expectedProton","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"previewTotalSwapElectronToProton","outputs":[{"internalType":"uint256","name":"expectedProton","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proton","outputs":[{"internalType":"contract ProtofiERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMoneyPot","name":"_moneyPot","type":"address"}],"name":"setupMoneyPot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ProtofiERC20","name":"_proton","type":"address"}],"name":"setupProton","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"swapToProton","outputs":[],"stateMutability":"nonpayable","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":"recipient","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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wallets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60c06040526007805460ff60a81b191690556008805460ff60a01b191690553480156200002b57600080fd5b5060405162003b1038038062003b10833981810160405260408110156200005157600080fd5b508051602091820151604080518082018252600e81526d22b632b1ba3937b7102a37b5b2b760911b8186015281518083019092526004825263115310d560e21b94820194909452919290916000620000a86200015d565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350815162000107906005906020850190620001c8565b5080516200011d906006906020840190620001c8565b505060078054601260ff1990911617905550608082905262000151816402540be40062000161602090811b620021e117901c565b60a05250620002649050565b3390565b6000826200017257506000620001c2565b828202828482816200018057fe5b0414620001bf5760405162461bcd60e51b815260040180806020018281038252602181526020018062003aef6021913960400191505060405180910390fd5b90505b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200020b57805160ff19168380011785556200023b565b828001600101855582156200023b579182015b828111156200023b5782518255916020019190600101906200021e565b50620002499291506200024d565b5090565b5b808211156200024957600081556001016200024e565b60805160a051613849620002a6600039806116365280611b8f5280611bf45280611c21525080611b505280611bd05280611c50528061294452506138496000f3fe608060405234801561001057600080fd5b50600436106102c85760003560e01c806389b08f111161017b578063d78769e3116100d8578063e7a324dc1161008c578063f2fde38b11610071578063f2fde38b14610940578063f9902fd114610973578063fccc28131461097b576102c8565b8063e7a324dc146108d9578063f1127ed8146108e1576102c8565b8063db8dddae116100bd578063db8dddae14610879578063dd62ed3e14610881578063e3d40370146108bc576102c8565b8063d78769e314610813578063d918a2d914610846576102c8565b8063a9059cbb1161012f578063b4b5ea5711610114578063b4b5ea5714610784578063b854b2c1146107b7578063c3cda520146107bf576102c8565b8063a9059cbb14610743578063b03e64781461077c576102c8565b806395d89b411161016057806395d89b41146106fa5780639d4610c814610702578063a457c2d71461070a576102c8565b806389b08f11146106bf5780638da5cb5b146106f2576102c8565b80634fae6a5b11610229578063715018a6116101dd5780637a027eea116101c25780637a027eea1461064b5780637ecebe0014610684578063893d20e8146106b7576102c8565b8063715018a61461060a578063782d6fe114610612576102c8565b80635c19a95c1161020e5780635c19a95c146105585780636fcfff451461058b57806370a08231146105d7576102c8565b80634fae6a5b146104f2578063587cde1e14610525576102c8565b806323b872dd1161028057806336ae3d1c1161026557806336ae3d1c1461044d578063395093511461047e57806340c10f19146104b7576102c8565b806323b872dd146103ec578063313ce5671461042f576102c8565b806318160ddd116102b157806318160ddd1461039757806320606b70146103b1578063208056f0146103b9576102c8565b806306fdde03146102cd578063095ea7b31461034a575b600080fd5b6102d5610983565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561030f5781810151838201526020016102f7565b50505050905090810190601f16801561033c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103836004803603604081101561036057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a37565b604080519115158252519081900360200190f35b61039f610a55565b60408051918252519081900360200190f35b61039f610a5b565b61039f600480360360208110156103cf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a7f565b6103836004803603606081101561040257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610a91565b610437610b32565b6040805160ff9092168252519081900360200190f35b610455610b3b565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103836004803603604081101561049457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610b57565b6104f0600480360360408110156104cd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610bb2565b005b6104f06004803603602081101561050857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e3a565b6104556004803603602081101561053b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610fc0565b6104f06004803603602081101561056e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610fee565b6105be600480360360208110156105a157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ffb565b6040805163ffffffff9092168252519081900360200190f35b61039f600480360360208110156105ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611013565b6104f061103b565b61039f6004803603604081101561062857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561113b565b61039f6004803603604081101561066157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611405565b61039f6004803603602081101561069a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611418565b61045561142a565b610383600480360360208110156106d557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611439565b61045561144e565b6102d561146a565b6104556114e9565b6103836004803603604081101561072057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561150a565b6103836004803603604081101561075957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561157f565b61039f611593565b61039f6004803603602081101561079a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611599565b61039f611634565b6104f0600480360360c08110156107d557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060408101359060ff6060820135169060808101359060a00135611658565b6104f06004803603602081101561082957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611997565b61039f6004803603602081101561085c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611b23565b61039f611c4e565b61039f6004803603604081101561089757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611c72565b6104f0600480360360208110156108d257600080fd5b5035611caa565b61039f611f8e565b610920600480360360408110156108f757600080fd5b50803573ffffffffffffffffffffffffffffffffffffffff16906020013563ffffffff16611fb2565b6040805163ffffffff909316835260208301919091528051918290030190f35b6104f06004803603602081101561095657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611fdf565b61039f612169565b6104556121db565b60058054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a2d5780601f10610a0257610100808354040283529160200191610a2d565b820191906000526020600020905b815481529060010190602001808311610a1057829003601f168201915b5050505050905090565b6000610a4b610a44612254565b8484612258565b5060015b92915050565b60035490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b600b6020526000908152604090205481565b6000610a9e84848461239f565b610b2884610aaa612254565b610b23856040518060600160405280602881526020016136cb6028913973ffffffffffffffffffffffffffffffffffffffff8a16600090815260026020526040812090610af5612254565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190612801565b612258565b5060019392505050565b60075460ff1690565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b6000610a4b610b64612254565b84610b238560026000610b75612254565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c1681529252902054906128b2565b610bba612254565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610c4357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020526040812090610c7890849083908590612926565b815573ffffffffffffffffffffffffffffffffffffffff83166000908152600a602052604090205460ff16610d4e576009805460018082019092557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86169081179091556000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790555b610d588383612a0f565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600c6020526040812054610d8a921684612b36565b60085473ffffffffffffffffffffffffffffffffffffffff1615610e3557600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b158015610e1c57600080fd5b505af1158015610e30573d6000803e3d6000fd5b505050505b505050565b610e42612254565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610ecb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60085474010000000000000000000000000000000000000000900460ff1615610f3f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260438152602001806137ac6043913960600191505060405180910390fd5b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9093167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179190911674010000000000000000000000000000000000000000179055565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600c6020526040902054165b919050565b610ff83382612d17565b50565b600e6020526000908152604090205463ffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b611043612254565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146110cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000438210611195576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806137846028913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600e602052604090205463ffffffff16806111d0576000915050610a4f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8601811685529252909120541683106112955773ffffffffffffffffffffffffffffffffffffffff84166000908152600d602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9490940163ffffffff16835292905220600101549050610a4f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600d6020908152604080832083805290915290205463ffffffff168310156112dd576000915050610a4f565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82015b8163ffffffff168163ffffffff1611156113c157600282820363ffffffff1604810361132d613519565b5073ffffffffffffffffffffffffffffffffffffffff87166000908152600d6020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561139c57602001519450610a4f9350505050565b805163ffffffff168711156113b3578193506113ba565b6001820392505b5050611303565b5073ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020908152604080832063ffffffff9094168352929052206001015491505092915050565b60006114118383612dde565b9392505050565b600f6020526000908152604090205481565b600061143461144e565b905090565b600a6020526000908152604090205460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60068054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a2d5780601f10610a0257610100808354040283529160200191610a2d565b600754610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610a4b611517612254565b84610b23856040518060600160405280602581526020016137ef6025913960026000611541612254565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d16815292529020549190612801565b6000610a4b61158c612254565b848461239f565b60045490565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e602052604081205463ffffffff16806115d1576000611411565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff86011684529091529020600101549392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611683610983565b80519060200120611692612e8f565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c084015273ffffffffffffffffffffffffffffffffffffffff8b1660e084015261010083018a90526101208084018a905282518085039091018152610140840183528051908501207f19010000000000000000000000000000000000000000000000000000000000006101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a905261022286018990529351929650909492939092600192610242808401937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08301929081900390910190855afa15801561180b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166118a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061375d6027913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604090208054600181019091558914611927576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806136876023913960400191505060405180910390fd5b87421115611980576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806136196027913960400191505060405180910390fd5b61198a818b612d17565b505050505b505050505050565b61199f612254565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611a2857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6007547501000000000000000000000000000000000000000000900460ff1615611a9d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260478152602001806136406047913960600191505060405180910390fd5b600780547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff909316610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff90911617919091167501000000000000000000000000000000000000000000179055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b602052604081208054611b74907f00000000000000000000000000000000000000000000000000000000000000006128b2565b4310611b84576000915050610fe9565b8054431415611bb6577f0000000000000000000000000000000000000000000000000000000000000000915050610fe9565b8054600090611bc6904390612e93565b9050611c46611c1f7f0000000000000000000000000000000000000000000000000000000000000000611c197f0000000000000000000000000000000000000000000000000000000000000000856121e1565b90612ed5565b7f000000000000000000000000000000000000000000000000000000000000000090612e93565b949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b60008111611d1957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f616d6f756e742030000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b336000611d268284612dde565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b60205260409020909150611d5c908390856001612926565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b6020526040902055611d8c8284612f17565b600c6020527f45117a726ea4f344045dc210793664a28d2d320b7e03f6bffdae553d24c3586c5473ffffffffffffffffffffffffffffffffffffffff83811660008181526040808220549051948416949316927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a473ffffffffffffffffffffffffffffffffffffffff8083166000908152600c602052604081205461dead9091527f45117a726ea4f344045dc210793664a28d2d320b7e03f6bffdae553d24c3586c54611e6192918216911685612b36565b600754604080517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529151610100909304909116916340c10f199160448082019260009290919082900301818387803b158015611ee257600080fd5b505af1158015611ef6573d6000803e3d6000fd5b505060085473ffffffffffffffffffffffffffffffffffffffff16159150610e35905057600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b158015610e1c57600080fd5b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b600d6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b611fe7612254565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461207057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166120dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806135ab6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600080805b6009548110156121d55760006009828154811061218757fe5b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff1691506121b382611013565b90506121c96121c28383612dde565b85906128b2565b9350505060010161216e565b50905090565b61dead81565b6000826121f057506000610a4f565b828202828482816121fd57fe5b0414611411576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806136aa6021913960400191505060405180910390fd5b3390565b73ffffffffffffffffffffffffffffffffffffffff83166122c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806137396024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216612330576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806135d16022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604090206123d2908490836001612926565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600b6020526040902091909155821661dead14156124c1576124118382612f17565b60085473ffffffffffffffffffffffffffffffffffffffff16156124bc57600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b1580156124a357600080fd5b505af11580156124b7573d6000803e3d6000fd5b505050505b61268f565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604081206124f4918491908490612926565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604090205561252583838361306b565b60085473ffffffffffffffffffffffffffffffffffffffff161561268f57600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b1580156125b757600080fd5b505af11580156125cb573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461268f57600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b15801561267657600080fd5b505af115801561268a573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a602052604090205460ff16612763576009805460018082019092557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85169081179091556000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790555b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600c6020526040808220543383528183205491519084169391821692918716917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f91a4336000908152600c60205260408082205473ffffffffffffffffffffffffffffffffffffffff85811684529190922054610e35928216911683612b36565b600081848411156128aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561286f578181015183820152602001612857565b50505050905090810190601f16801561289c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561141157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061293185611013565b61293c575043611c46565b6000612968437f0000000000000000000000000000000000000000000000000000000000000000612e93565b905060008186600001541161297d5781612980565b85545b9050600084156129b0578561299489611013565b14156129a65760009350505050611c46565b509150611c469050565b6129d66129bd43886121e1565b6129d0846129ca8c611013565b906121e1565b906128b2565b905060006129f16129ea886129d08c611013565b8390612ed5565b9050838111612a005783612a02565b805b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff8216612a9157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600354612a9e90826128b2565b60035573ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902054612ad190826128b2565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b725750600081115b15610e355773ffffffffffffffffffffffffffffffffffffffff831615612c495773ffffffffffffffffffffffffffffffffffffffff83166000908152600e602052604081205463ffffffff169081612bcc576000612c29565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff87011684529091529020600101545b90506000612c378285612e93565b9050612c4586848484613232565b5050505b73ffffffffffffffffffffffffffffffffffffffff821615610e355773ffffffffffffffffffffffffffffffffffffffff82166000908152600e602052604081205463ffffffff169081612c9e576000612cfb565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff87011684529091529020600101545b90506000612d0982856128b2565b905061198f85848484613232565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600c602052604081205490911690612d4b84611013565b73ffffffffffffffffffffffffffffffffffffffff8581166000818152600c602052604080822080547fffffffffffffffffffffffff000000000000000000000000000000000000000016898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4612dd8828483612b36565b50505050565b600081612dea84611013565b1015612e5757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e6f7420656e6f75676820656c656374726f6e00000000000000000000000000604482015290519081900360640190fd5b6000612e6284611b23565b905080612e725782915050610a4f565b611c46612e8864e8d4a51000611c1986856121e1565b8490612e93565b4690565b600061141183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612801565b600061141183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613422565b73ffffffffffffffffffffffffffffffffffffffff821661dead1415612f88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806136f36021913960400191505060405180910390fd5b612fd2816040518060600160405280602281526020016135546022913973ffffffffffffffffffffffffffffffffffffffff85166000908152600160205260409020549190612801565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020556003546130059082612e93565b60035560045461301590826128b2565b60045560408051828152905161dead9173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b73ffffffffffffffffffffffffffffffffffffffff83166130d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806137146025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216613143576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806135316023913960400191505060405180910390fd5b61318d816040518060600160405280602681526020016135f36026913973ffffffffffffffffffffffffffffffffffffffff86166000908152600160205260409020549190612801565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602052604080822093909355908416815220546131c990826128b2565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600061325643604051806060016040528060358152602001613576603591396134a1565b905060008463ffffffff161180156132ca575073ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8901811685529252909120548282169116145b156133325773ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff890116845290915290206001018290556133cb565b60408051808201825263ffffffff8084168252602080830186815273ffffffffffffffffffffffffffffffffffffffff8a166000818152600d84528681208b861682528452868120955186549086167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000009182161787559251600196870155908152600e9092529390208054928801909116919092161790555b6040805184815260208101849052815173ffffffffffffffffffffffffffffffffffffffff8816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6000818361348b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561286f578181015183820152602001612857565b50600083858161349757fe5b0495945050505050565b6000816401000000008410613511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561286f578181015183820152602001612857565b509192915050565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636550524f544f3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d626572206578636565647320333220626974734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636550524f544f3a3a64656c656761746542795369673a207369676e617475726520657870697265645468652050726f746f6e20746f6b656e2068617320616c7265616479206265656e207365742075702e204e6f206f6e652063616e206368616e676520697420616e796d6f72652e50524f544f3a3a64656c656761746542795369673a20696e76616c6964206e6f6e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737350524f544f3a3a64656c656761746542795369673a20696e76616c6964207369676e617475726550524f544f3a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e6564546865204d6f6e6579706f742068617320616c7265616479206265656e207365742075702e204e6f206f6e652063616e206368616e676520697420616e796d6f72652e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122098b1a8b8687bc4e0ca2a6323b1519baabffd916121457850c2df6d2ea899362864736f6c634300060c0033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f770000000000000000000000000000000000000000000000000000000000046500000000000000000000000000000000000000000000000000000000000000001e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102c85760003560e01c806389b08f111161017b578063d78769e3116100d8578063e7a324dc1161008c578063f2fde38b11610071578063f2fde38b14610940578063f9902fd114610973578063fccc28131461097b576102c8565b8063e7a324dc146108d9578063f1127ed8146108e1576102c8565b8063db8dddae116100bd578063db8dddae14610879578063dd62ed3e14610881578063e3d40370146108bc576102c8565b8063d78769e314610813578063d918a2d914610846576102c8565b8063a9059cbb1161012f578063b4b5ea5711610114578063b4b5ea5714610784578063b854b2c1146107b7578063c3cda520146107bf576102c8565b8063a9059cbb14610743578063b03e64781461077c576102c8565b806395d89b411161016057806395d89b41146106fa5780639d4610c814610702578063a457c2d71461070a576102c8565b806389b08f11146106bf5780638da5cb5b146106f2576102c8565b80634fae6a5b11610229578063715018a6116101dd5780637a027eea116101c25780637a027eea1461064b5780637ecebe0014610684578063893d20e8146106b7576102c8565b8063715018a61461060a578063782d6fe114610612576102c8565b80635c19a95c1161020e5780635c19a95c146105585780636fcfff451461058b57806370a08231146105d7576102c8565b80634fae6a5b146104f2578063587cde1e14610525576102c8565b806323b872dd1161028057806336ae3d1c1161026557806336ae3d1c1461044d578063395093511461047e57806340c10f19146104b7576102c8565b806323b872dd146103ec578063313ce5671461042f576102c8565b806318160ddd116102b157806318160ddd1461039757806320606b70146103b1578063208056f0146103b9576102c8565b806306fdde03146102cd578063095ea7b31461034a575b600080fd5b6102d5610983565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561030f5781810151838201526020016102f7565b50505050905090810190601f16801561033c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103836004803603604081101561036057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a37565b604080519115158252519081900360200190f35b61039f610a55565b60408051918252519081900360200190f35b61039f610a5b565b61039f600480360360208110156103cf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a7f565b6103836004803603606081101561040257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610a91565b610437610b32565b6040805160ff9092168252519081900360200190f35b610455610b3b565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103836004803603604081101561049457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610b57565b6104f0600480360360408110156104cd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610bb2565b005b6104f06004803603602081101561050857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e3a565b6104556004803603602081101561053b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610fc0565b6104f06004803603602081101561056e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610fee565b6105be600480360360208110156105a157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ffb565b6040805163ffffffff9092168252519081900360200190f35b61039f600480360360208110156105ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611013565b6104f061103b565b61039f6004803603604081101561062857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561113b565b61039f6004803603604081101561066157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611405565b61039f6004803603602081101561069a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611418565b61045561142a565b610383600480360360208110156106d557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611439565b61045561144e565b6102d561146a565b6104556114e9565b6103836004803603604081101561072057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561150a565b6103836004803603604081101561075957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561157f565b61039f611593565b61039f6004803603602081101561079a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611599565b61039f611634565b6104f0600480360360c08110156107d557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060408101359060ff6060820135169060808101359060a00135611658565b6104f06004803603602081101561082957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611997565b61039f6004803603602081101561085c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611b23565b61039f611c4e565b61039f6004803603604081101561089757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611c72565b6104f0600480360360208110156108d257600080fd5b5035611caa565b61039f611f8e565b610920600480360360408110156108f757600080fd5b50803573ffffffffffffffffffffffffffffffffffffffff16906020013563ffffffff16611fb2565b6040805163ffffffff909316835260208301919091528051918290030190f35b6104f06004803603602081101561095657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611fdf565b61039f612169565b6104556121db565b60058054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a2d5780601f10610a0257610100808354040283529160200191610a2d565b820191906000526020600020905b815481529060010190602001808311610a1057829003601f168201915b5050505050905090565b6000610a4b610a44612254565b8484612258565b5060015b92915050565b60035490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b600b6020526000908152604090205481565b6000610a9e84848461239f565b610b2884610aaa612254565b610b23856040518060600160405280602881526020016136cb6028913973ffffffffffffffffffffffffffffffffffffffff8a16600090815260026020526040812090610af5612254565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190612801565b612258565b5060019392505050565b60075460ff1690565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b6000610a4b610b64612254565b84610b238560026000610b75612254565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c1681529252902054906128b2565b610bba612254565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610c4357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b6020526040812090610c7890849083908590612926565b815573ffffffffffffffffffffffffffffffffffffffff83166000908152600a602052604090205460ff16610d4e576009805460018082019092557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86169081179091556000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790555b610d588383612a0f565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600c6020526040812054610d8a921684612b36565b60085473ffffffffffffffffffffffffffffffffffffffff1615610e3557600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b158015610e1c57600080fd5b505af1158015610e30573d6000803e3d6000fd5b505050505b505050565b610e42612254565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610ecb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60085474010000000000000000000000000000000000000000900460ff1615610f3f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260438152602001806137ac6043913960600191505060405180910390fd5b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9093167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179190911674010000000000000000000000000000000000000000179055565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600c6020526040902054165b919050565b610ff83382612d17565b50565b600e6020526000908152604090205463ffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b611043612254565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146110cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000438210611195576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806137846028913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600e602052604090205463ffffffff16806111d0576000915050610a4f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8601811685529252909120541683106112955773ffffffffffffffffffffffffffffffffffffffff84166000908152600d602090815260408083207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9490940163ffffffff16835292905220600101549050610a4f565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600d6020908152604080832083805290915290205463ffffffff168310156112dd576000915050610a4f565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82015b8163ffffffff168163ffffffff1611156113c157600282820363ffffffff1604810361132d613519565b5073ffffffffffffffffffffffffffffffffffffffff87166000908152600d6020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561139c57602001519450610a4f9350505050565b805163ffffffff168711156113b3578193506113ba565b6001820392505b5050611303565b5073ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020908152604080832063ffffffff9094168352929052206001015491505092915050565b60006114118383612dde565b9392505050565b600f6020526000908152604090205481565b600061143461144e565b905090565b600a6020526000908152604090205460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60068054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a2d5780601f10610a0257610100808354040283529160200191610a2d565b600754610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610a4b611517612254565b84610b23856040518060600160405280602581526020016137ef6025913960026000611541612254565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d16815292529020549190612801565b6000610a4b61158c612254565b848461239f565b60045490565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e602052604081205463ffffffff16806115d1576000611411565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff86011684529091529020600101549392505050565b7f00000000000000000000000000000000000000000000000000000045d964b80081565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611683610983565b80519060200120611692612e8f565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c084015273ffffffffffffffffffffffffffffffffffffffff8b1660e084015261010083018a90526101208084018a905282518085039091018152610140840183528051908501207f19010000000000000000000000000000000000000000000000000000000000006101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a905261022286018990529351929650909492939092600192610242808401937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08301929081900390910190855afa15801561180b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166118a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061375d6027913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f602052604090208054600181019091558914611927576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806136876023913960400191505060405180910390fd5b87421115611980576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806136196027913960400191505060405180910390fd5b61198a818b612d17565b505050505b505050505050565b61199f612254565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611a2857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6007547501000000000000000000000000000000000000000000900460ff1615611a9d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260478152602001806136406047913960600191505060405180910390fd5b600780547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff909316610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff90911617919091167501000000000000000000000000000000000000000000179055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b602052604081208054611b74907f00000000000000000000000000000000000000000000000000000000000465006128b2565b4310611b84576000915050610fe9565b8054431415611bb6577f00000000000000000000000000000000000000000000000000000045d964b800915050610fe9565b8054600090611bc6904390612e93565b9050611c46611c1f7f0000000000000000000000000000000000000000000000000000000000046500611c197f00000000000000000000000000000000000000000000000000000045d964b800856121e1565b90612ed5565b7f00000000000000000000000000000000000000000000000000000045d964b80090612e93565b949350505050565b7f000000000000000000000000000000000000000000000000000000000004650081565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b60008111611d1957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f616d6f756e742030000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b336000611d268284612dde565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b60205260409020909150611d5c908390856001612926565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b6020526040902055611d8c8284612f17565b600c6020527f45117a726ea4f344045dc210793664a28d2d320b7e03f6bffdae553d24c3586c5473ffffffffffffffffffffffffffffffffffffffff83811660008181526040808220549051948416949316927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a473ffffffffffffffffffffffffffffffffffffffff8083166000908152600c602052604081205461dead9091527f45117a726ea4f344045dc210793664a28d2d320b7e03f6bffdae553d24c3586c54611e6192918216911685612b36565b600754604080517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529151610100909304909116916340c10f199160448082019260009290919082900301818387803b158015611ee257600080fd5b505af1158015611ef6573d6000803e3d6000fd5b505060085473ffffffffffffffffffffffffffffffffffffffff16159150610e35905057600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b158015610e1c57600080fd5b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b600d6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b611fe7612254565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461207057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166120dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806135ab6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600080805b6009548110156121d55760006009828154811061218757fe5b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff1691506121b382611013565b90506121c96121c28383612dde565b85906128b2565b9350505060010161216e565b50905090565b61dead81565b6000826121f057506000610a4f565b828202828482816121fd57fe5b0414611411576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806136aa6021913960400191505060405180910390fd5b3390565b73ffffffffffffffffffffffffffffffffffffffff83166122c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806137396024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216612330576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806135d16022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604090206123d2908490836001612926565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600b6020526040902091909155821661dead14156124c1576124118382612f17565b60085473ffffffffffffffffffffffffffffffffffffffff16156124bc57600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b1580156124a357600080fd5b505af11580156124b7573d6000803e3d6000fd5b505050505b61268f565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604081206124f4918491908490612926565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b602052604090205561252583838361306b565b60085473ffffffffffffffffffffffffffffffffffffffff161561268f57600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b1580156125b757600080fd5b505af11580156125cb573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461268f57600854604080517feb75b06c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529151919092169163eb75b06c91602480830192600092919082900301818387803b15801561267657600080fd5b505af115801561268a573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a602052604090205460ff16612763576009805460018082019092557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85169081179091556000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790555b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600c6020526040808220543383528183205491519084169391821692918716917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f91a4336000908152600c60205260408082205473ffffffffffffffffffffffffffffffffffffffff85811684529190922054610e35928216911683612b36565b600081848411156128aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561286f578181015183820152602001612857565b50505050905090810190601f16801561289c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561141157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061293185611013565b61293c575043611c46565b6000612968437f0000000000000000000000000000000000000000000000000000000000046500612e93565b905060008186600001541161297d5781612980565b85545b9050600084156129b0578561299489611013565b14156129a65760009350505050611c46565b509150611c469050565b6129d66129bd43886121e1565b6129d0846129ca8c611013565b906121e1565b906128b2565b905060006129f16129ea886129d08c611013565b8390612ed5565b9050838111612a005783612a02565b805b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff8216612a9157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600354612a9e90826128b2565b60035573ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902054612ad190826128b2565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b725750600081115b15610e355773ffffffffffffffffffffffffffffffffffffffff831615612c495773ffffffffffffffffffffffffffffffffffffffff83166000908152600e602052604081205463ffffffff169081612bcc576000612c29565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff87011684529091529020600101545b90506000612c378285612e93565b9050612c4586848484613232565b5050505b73ffffffffffffffffffffffffffffffffffffffff821615610e355773ffffffffffffffffffffffffffffffffffffffff82166000908152600e602052604081205463ffffffff169081612c9e576000612cfb565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff87011684529091529020600101545b90506000612d0982856128b2565b905061198f85848484613232565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600c602052604081205490911690612d4b84611013565b73ffffffffffffffffffffffffffffffffffffffff8581166000818152600c602052604080822080547fffffffffffffffffffffffff000000000000000000000000000000000000000016898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4612dd8828483612b36565b50505050565b600081612dea84611013565b1015612e5757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e6f7420656e6f75676820656c656374726f6e00000000000000000000000000604482015290519081900360640190fd5b6000612e6284611b23565b905080612e725782915050610a4f565b611c46612e8864e8d4a51000611c1986856121e1565b8490612e93565b4690565b600061141183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612801565b600061141183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613422565b73ffffffffffffffffffffffffffffffffffffffff821661dead1415612f88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806136f36021913960400191505060405180910390fd5b612fd2816040518060600160405280602281526020016135546022913973ffffffffffffffffffffffffffffffffffffffff85166000908152600160205260409020549190612801565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020556003546130059082612e93565b60035560045461301590826128b2565b60045560408051828152905161dead9173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b73ffffffffffffffffffffffffffffffffffffffff83166130d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806137146025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216613143576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806135316023913960400191505060405180910390fd5b61318d816040518060600160405280602681526020016135f36026913973ffffffffffffffffffffffffffffffffffffffff86166000908152600160205260409020549190612801565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602052604080822093909355908416815220546131c990826128b2565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600061325643604051806060016040528060358152602001613576603591396134a1565b905060008463ffffffff161180156132ca575073ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8901811685529252909120548282169116145b156133325773ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020908152604080832063ffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff890116845290915290206001018290556133cb565b60408051808201825263ffffffff8084168252602080830186815273ffffffffffffffffffffffffffffffffffffffff8a166000818152600d84528681208b861682528452868120955186549086167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000009182161787559251600196870155908152600e9092529390208054928801909116919092161790555b6040805184815260208101849052815173ffffffffffffffffffffffffffffffffffffffff8816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b6000818361348b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561286f578181015183820152602001612857565b50600083858161349757fe5b0495945050505050565b6000816401000000008410613511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561286f578181015183820152602001612857565b509192915050565b60408051808201909152600080825260208201529056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636550524f544f3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d626572206578636565647320333220626974734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636550524f544f3a3a64656c656761746542795369673a207369676e617475726520657870697265645468652050726f746f6e20746f6b656e2068617320616c7265616479206265656e207365742075702e204e6f206f6e652063616e206368616e676520697420616e796d6f72652e50524f544f3a3a64656c656761746542795369673a20696e76616c6964206e6f6e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737350524f544f3a3a64656c656761746542795369673a20696e76616c6964207369676e617475726550524f544f3a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e6564546865204d6f6e6579706f742068617320616c7265616479206265656e207365742075702e204e6f206f6e652063616e206368616e676520697420616e796d6f72652e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122098b1a8b8687bc4e0ca2a6323b1519baabffd916121457850c2df6d2ea899362864736f6c634300060c0033

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

0000000000000000000000000000000000000000000000000000000000046500000000000000000000000000000000000000000000000000000000000000001e

-----Decoded View---------------
Arg [0] : swapPenaltyMaxPeriod (uint256): 288000
Arg [1] : swapPenaltyMaxPerElectron (uint256): 30

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000046500
Arg [1] : 000000000000000000000000000000000000000000000000000000000000001e


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

ProtoFi is a community-driven, user-owned AMM on the Fantom Opera network that focuses on long term sustainability and value creation for users by giving the opportunity for investors to own a piece of the protocol itself.

Validator Index Block Amount
View All Withdrawals

Txn 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.