Contract 0xc136e6b376a9946b156db1ed3a34b08afdaed76d 2

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc88ce9a021d1b40050373bc21e83e851c1586bce869f31940b7ea45556e10318Transfer160554992022-06-27 10:48:256 hrs 39 mins ago0x3a3db7e829152720ae42add241824045b9936261 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.00014445407 ETH
0xc44ed6360bc6e3385d55e6a5f4cfecbd1194d5ce9c09863d36ea586008ea32c2Stake160546132022-06-27 10:41:026 hrs 46 mins ago0x42ffd51cdc7efa87afa0e1cb5e2b22d924784407 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000159477479 ETH
0xc4c97c63a49ebdfca66e580ad0e21b67c2488057264a3239c6180a1ddf5a25dcUnstake160544022022-06-27 10:39:486 hrs 47 mins ago0x3a3db7e829152720ae42add241824045b9936261 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000159374206 ETH
0x22066469d2c0cab9a4025df2592538ff3ed8c8fadee8fe3350a2bb41d1315a61Transfer160262562022-06-27 7:22:2410 hrs 5 mins ago0x852f97b0748cf25eb128f7f1d693f587574b8a8c IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000151398779 ETH
0xb8c766a8e33850d4d02d4ec647567cadd6e8b34cda94ba0d8cea16fb67d835b0Approve160160222022-06-27 6:03:5711 hrs 23 mins ago0xda943db697fd2257cba8c90e1171584d9a352bfd IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000191733866 ETH
0xb7c6b1839bc94aba01e86857c059861d816490772dc76295700b565fd5ee1595Set Authorized M...160146692022-06-27 5:50:5511 hrs 36 mins ago0x775590f0cf2c435f8bb2e4e16e9250cd34443bc1 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000176972192 ETH
0xc5dea95d418fb43bd5a69000703987f3a87bd9a6bd404512f6d74f66f2673cb7Approve158737312022-06-26 7:53:361 day 9 hrs ago0x210e6a4a40f57ea57fd7f83c8e8bf604d42613e5 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000163841798 ETH
0xbb11536a23e530f6401b3df0dfae7a38f3ff145a90ada11339ced65c573f26e8Approve158737042022-06-26 7:52:361 day 9 hrs ago0x210e6a4a40f57ea57fd7f83c8e8bf604d42613e5 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000179596913 ETH
0x2f95c002fe2276b6c5ac00a4c86c750ab9fcd7771cc9ca544e7f77f7a879860fClaim Unlocked157156052022-06-25 4:44:172 days 12 hrs ago0x84b6e6e7ce8a2ca7cb32dc99d1ff150011216574 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000186725788 ETH
0xbcc3885da0b3248c261c233b5555862ddc3aeb82fd2510125f3511a0614e31d5Stake153853222022-06-22 13:10:405 days 4 hrs ago0x3a3db7e829152720ae42add241824045b9936261 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000150596642 ETH
0x91b9fd1417bdbe8896c50b19ee75d9dd922f919fcd74e48b5a6d9b36eadb5c8dTransfer153841962022-06-22 13:02:315 days 4 hrs ago0x200c90a63cc889f0d83d451cb21d59a62a2835ca IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000136418875 ETH
0xf89e7782612c0b2f7402b91f65329abac45d277c13c7eb7bfdaacc9982c50c92Unstake153834312022-06-22 12:57:175 days 4 hrs ago0x200c90a63cc889f0d83d451cb21d59a62a2835ca IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000150510074 ETH
0xa915e3ef65ca28b816e4e0d81c8da6a511ad62d104611c5d58f0dd5654781a52Transfer152803242022-06-21 18:24:585 days 23 hrs ago0x3b6c927e8321dd77004071375f57c25aefdecd22 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000223717234 ETH
0xb40a79b14137bbaf231aab7323bac32b9ba59d3cc297a1b3d8b3dca1950e997dTransfer152697512022-06-21 16:19:296 days 1 hr ago0x6a8a0d1034a8ce14ef893efe349f03306fde2c74 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000203977428 ETH
0x910e0ff878f88e40b9e3a72acf17c8aeb7615d0dd42adf01ddee4de6f7dbf043Approve151707642022-06-20 14:37:307 days 2 hrs ago0xf2e3f06afe2443d212208488674ca9f643907524 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.00013417181 ETH
0x83d579432fd989f99613bd2aeb5af5310be1b85df4f0db64aa5df85986ff9846Stake151660542022-06-20 13:32:187 days 3 hrs ago0xf4f2e2ac3a9dd57b70237ee1128828102b75e068 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000138449123 ETH
0xb025a3fda84aa101e5e81d0a334443cd8d18d9f40fa0f6cc1ab4cb140177b96aApprove151066732022-06-19 19:44:527 days 21 hrs ago0x03add3eca3d0cc46bfe2908894dc3a0c881bb7e4 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000177372993 ETH
0x6ca5adbd0a183baba24974b52770f87d8350817fe91bb09eda71c014deaa68a8Transfer149064742022-06-17 15:03:5210 days 2 hrs ago0x45df53009d4a68f2c777301aa4d99edb24ff8a18 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000158618355 ETH
0x4f22b0fe46c19d108d14941445d1ebeeee3adbec694269f0f7c21de948d19122Stake149060472022-06-17 14:57:5210 days 2 hrs ago0x200c90a63cc889f0d83d451cb21d59a62a2835ca IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000158746459 ETH
0x4fa91dfb5455959eff8971c7b0d3eb71bc7eb9057dcafad659e72e50bc71c2afUnstake149056292022-06-17 14:51:4310 days 2 hrs ago0x45df53009d4a68f2c777301aa4d99edb24ff8a18 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.0001759058 ETH
0x51a6c898ef968123ca2857d826524be0b0069dfe2d3871ca6b8e21582e1daa44Approve146357862022-06-14 20:32:0912 days 20 hrs ago0x3fad8bcd2aea732d02a203c156b19205253f2a06 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.00029204098 ETH
0x954aee124076debcaaf3853ecbbf6fbeafce560d9ccd4a4b41d96ab23b45a805Unstake145904142022-06-14 9:17:4013 days 8 hrs ago0x1802da044e2b382a60bb64c5e9f03480c6f2a70d IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000339541141 ETH
0xd703332831216b95fc8494d0cfdd45573aa856ec5c3599cb3240db776bd53373Claim Unlocked144277412022-06-12 18:03:1914 days 23 hrs ago0x84b6e6e7ce8a2ca7cb32dc99d1ff150011216574 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000165294856 ETH
0x8460d600399ce3ad0d56a7728a30703e158dbc018a0e96f28cf254dae354de1eStake144108152022-06-12 14:08:2915 days 3 hrs ago0x45df53009d4a68f2c777301aa4d99edb24ff8a18 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.00017162899 ETH
0xf96a56e5d2087aa3bf68642fb532ed1dc42e5a696461e14f61652c0e5ff0dc8dApprove144090012022-06-12 13:45:0815 days 3 hrs ago0x45df53009d4a68f2c777301aa4d99edb24ff8a18 IN  0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH0.000182251211 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc44ed6360bc6e3385d55e6a5f4cfecbd1194d5ce9c09863d36ea586008ea32c2160546132022-06-27 10:41:026 hrs 46 mins ago 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0x2f73fb16933585ba089100c05561d58fd342bdf50 ETH
0xc4c97c63a49ebdfca66e580ad0e21b67c2488057264a3239c6180a1ddf5a25dc160544022022-06-27 10:39:486 hrs 47 mins ago 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0x2f73fb16933585ba089100c05561d58fd342bdf50 ETH
0xc6ee4b01d414b3799e3a61ffd1711e713434166210cc4b8ded5a6c6c007bfa4b160265352022-06-27 7:24:1910 hrs 3 mins ago 0x20785875b158ea838a4f24dff68f50b56a14afc6 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0xc6ee4b01d414b3799e3a61ffd1711e713434166210cc4b8ded5a6c6c007bfa4b160265352022-06-27 7:24:1910 hrs 3 mins ago 0x20785875b158ea838a4f24dff68f50b56a14afc6 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x73385a110513c30a5d5f88c9c17a4f98c0c51aa6a678322344c40305f7b6721e157873342022-06-25 15:42:422 days 1 hr ago 0x4d071352a133eb830ae02acebba162dca39c2fb5 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
0x7199af7870b54b15b60bf25f1c477827ad11e0d61090f52e5154d6f7176d6ada157523212022-06-25 10:30:342 days 6 hrs ago 0x38dcae6a813b230b367a6c8e040416b8e68698d8 0xc136e6b376a9946b156db1ed3a34b08afdaed76d0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CredaCore

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : CredaCore.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./CredaControl.sol";
contract CredaCore is ERC20Burnable,CredaCtroller{

    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    mapping (address => mapping(address => LpStakeInfo)) private _stakingRecords;
    mapping (address => uint256) private _unlockFactor;
    mapping (address => uint256) private _unlockBlockTime;
    mapping(address => uint8) public mineContract;
    mapping (address => uint256) private _unlocks;
    uint256 public _totalUnlocked;




    struct LpStakeInfo {
        uint256 amountStaked;
        uint256 blockTime;
    }

    event LOG_UNLOCK_TRANSFER (
        address indexed from,
        address indexed to,
        uint256 amount
    );

    event LOG_STAKE (
        address indexed staker,
        address indexed token,
        uint256 stakeAmount
    );

    event LOG_UNSTAKE (
        address indexed staker,
        address indexed token,
        uint256 unstakeAmount
    );

    event LOG_CLAIM_UNLOCKED (
        address indexed staker,
        uint256 claimedAmount
    );

    event LOG_SET_UNLOCK_FACTOR (
        address indexed token,
        uint256 factor
    );

    event LOG_SET_UNLOCK_BLOCK_Time (
        address indexed token,
        uint256 blockTime
    );

    constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_){
        _mint(_msgSender(), 10**26); 
        _mintUnlocked(_msgSender(),  10**26); 
    }

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _unfreezeTransfer(sender, recipient, amount);
        uint256 allowance = allowance(sender, msg.sender);
        _approve(sender, msg.sender, allowance.sub(amount, "ERC20: TRANSFER_AMOUNT_EXCEEDED"));
        return true;
    }

   function _unfreezeTransfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        _unlocks[sender] = _unlocks[sender].sub(amount, "ERC20: transfer amount exceeds unlocked balance");
        _unlocks[recipient] = _unlocks[recipient].add(amount);
        if(mineContract[sender] == 1){
            _unlocks[recipient] = _unlocks[recipient].sub(amount);
            _totalUnlocked = _totalUnlocked.sub(amount);
        }

        emit LOG_UNLOCK_TRANSFER(sender, recipient, amount);
    }

    function setMineContract(address account, uint8 _lock) public onlyOwner{
        mineContract[account] = _lock;
    }

    function getMineContract(address account) public view onlyOwner returns (uint8)
    {
        return mineContract[account];
    }
   
   function totalUnlocked() external view  returns (uint256) {
        return _totalUnlocked;
    }

    function unlockedOf(address account) public view returns (uint256) {
        return _unlocks[account];
    }

    function lockedOf(address account) public view returns (uint256) {
        return balanceOf(account).sub(_unlocks[account]);
    }

    function _unfreeze(address account, uint256 amount) internal {
        require(balanceOf(account).sub(_unlocks[account]).sub(amount) >= 0);
        _unlocks[account] = _unlocks[account].add(amount);
        _totalUnlocked = _totalUnlocked.add(amount);
    }


   function mintUnlockedToken(address recipient, uint256 amount) onlyAuthorizedMintCaller external {
        _mint(recipient, amount);
        _mintUnlocked(recipient, amount);
        require(totalSupply() <= 10**26, "ERC20: TOTAL_SUPPLY_EXCEEDED");
    }

    function mintLockedToken(address recipient, uint256 amount) onlyAuthorizedMintCaller external {
        _mint(recipient, amount);
        require(totalSupply() <= 10**26, "ERC20: TOTAL_SUPPLY_EXCEEDED");
    }

    function _mintUnlocked(address recipient, uint256 amount) internal {
        _unlocks[recipient] = _unlocks[recipient].add(amount);
        _totalUnlocked = _totalUnlocked.add(amount);
        emit LOG_UNLOCK_TRANSFER(address(0), recipient, amount);
    }

    function burn(uint256 amount) public override  {
        super.burn(amount);
        _unlocks[msg.sender] = _unlocks[msg.sender].sub(amount);
        _totalUnlocked = _totalUnlocked.sub(amount);
    }

    function burnFrom(address account, uint256 amount)
        public
        override
    {
        super.burnFrom(account, amount);
        _unlocks[account] = _unlocks[account].sub(amount);
        _totalUnlocked = _totalUnlocked.sub(amount);
    }


     function getUnlockFactor(address token) external view returns (uint256) {
        return _unlockFactor[token];
    }

    function getUnlockBlockTime(address token) external view returns (uint256) {
        return _unlockBlockTime[token];
    }

    function getStaked(address token) external view returns (uint256) {
        return _stakingRecords[msg.sender][token].amountStaked;
    }

    function getUnlockSpeed(address staker, address token) external view returns (uint256) {
        LpStakeInfo storage info = _stakingRecords[staker][token];
        return _getUnlockSpeed(token, staker, info.amountStaked);
    }

    function claimableUnlocked(address token) external view returns (uint256) {
        LpStakeInfo storage info = _stakingRecords[msg.sender][token];
        return _settleUnlockAmount(msg.sender, token, info.amountStaked, info.blockTime);
    }


    function setUnlockFactor(address token, uint256 _factor) external onlyOwner {
        _unlockFactor[token] = _factor;
        emit LOG_SET_UNLOCK_FACTOR(token, _factor);
    }

    function setUnlockBlockTime(address token, uint256 _blockTime) external onlyOwner {
        _unlockBlockTime[token] = _blockTime;
        emit LOG_SET_UNLOCK_BLOCK_Time(token, _blockTime);
    }

    function stake(address token, uint256 amount) external  returns (bool) {
        require(_unlockFactor[token] > 0, "ERC20: FACTOR_NOT_SET");
        require(_unlockBlockTime[token] > 0, "ERC20: BLOCK_Time_NOT_SET");
        _pullToken(token, msg.sender, amount);
        LpStakeInfo storage info = _stakingRecords[msg.sender][token];
        uint256 unlockedAmount = _settleUnlockAmount(msg.sender, token, info.amountStaked, info.blockTime);
        _updateStakeRecord(msg.sender, token, info.amountStaked.add(amount));
        _unfreeze(msg.sender,unlockedAmount);
        //_mintUnlocked(msg.sender,unlockedAmount);
        emit LOG_STAKE(msg.sender, token, amount);
        return true;
    }

    function unstake(address token, uint256 amount) external  returns (bool) {
        require(amount > 0, "ERC20: ZERO_UNSTAKE_AMOUNT");
        LpStakeInfo storage info = _stakingRecords[msg.sender][token];
        require(amount <= info.amountStaked, "ERC20: UNSTAKE_AMOUNT_EXCEEDED");
        uint256 unlockedAmount = _settleUnlockAmount(msg.sender, token, info.amountStaked, info.blockTime);
        _updateStakeRecord(msg.sender, token, info.amountStaked.sub(amount));
        _unfreeze(msg.sender, unlockedAmount);
        _pushToken(token, msg.sender, amount);
        emit LOG_UNSTAKE(msg.sender, token, amount);
        return true;
    }

    function claimUnlocked(address token) external returns (bool) {
        LpStakeInfo storage info = _stakingRecords[msg.sender][token];
        uint256 unlockedAmount = _settleUnlockAmount(msg.sender, token, info.amountStaked, info.blockTime);
        _updateStakeRecord(msg.sender, token, info.amountStaked);
        _unfreeze(msg.sender, unlockedAmount);
        emit LOG_CLAIM_UNLOCKED(msg.sender, unlockedAmount);
        return true;
    }

    function _updateStakeRecord(address staker, address token, uint256 _amountStaked) internal {
        _stakingRecords[staker][token].amountStaked = _amountStaked;
        _stakingRecords[staker][token].blockTime = block.timestamp;
    }

    function _settleUnlockAmount(address staker, address token, uint256 lpStaked, uint256 upToBlockTime) internal view returns (uint256) {
        uint256 unlockSpeed = _getUnlockSpeed(token, staker, lpStaked);
        uint256 times = block.timestamp.sub(upToBlockTime);
        uint256 unlockedAmount = unlockSpeed.mul(times).div(10**18);
        uint256 lockedAmount = lockedOf(staker);

        if (unlockedAmount > lockedAmount) {
            unlockedAmount = lockedAmount;
        }
        return unlockedAmount;
    }


    function _getUnlockSpeed(address token, address staker, uint256 lpStaked) internal view returns (uint256) {
        uint256 toBeUnlocked = lockedOf(staker);
        uint256 unlockSpeed = _unlockFactor[token].mul(lpStaked);
        uint256 maxUnlockSpeed = toBeUnlocked.mul(10**18).div(_unlockBlockTime[token]);
        if(unlockSpeed > maxUnlockSpeed) {
            unlockSpeed = maxUnlockSpeed;
        }
        return unlockSpeed;
    }


    function _pullToken(address token, address from, uint256 amount) internal {
        IERC20(token).safeTransferFrom(from, address(this), amount);
    }

    function _pushToken(address token, address to, uint256 amount) internal {
        IERC20(token).safeTransfer(to, amount);
    }
}

File 2 of 11 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 3 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^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 11 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

    /**
     * @dev See {IERC20-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 virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {IERC20-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 virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        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 {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + 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 {IERC20-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 virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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 virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This 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 virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 7 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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;
        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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 9 of 11 : CredaControl.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";

contract CredaCtroller is Ownable {

    mapping (address => bool) private _authorizedMintCaller;

    modifier onlyAuthorizedMintCaller() {
        require(_msgSender() == owner() || _authorizedMintCaller[_msgSender()],"CREDA: MINT_CALLER_NOT_AUTHORIZED");
        _;
    }
    
    function setAuthorizedMintCaller(address caller) onlyOwner external  {
        _authorizedMintCaller[caller] = true;
    }

    function removeAuthorizedMintCaller(address caller) onlyOwner external {
        _authorizedMintCaller[caller] = false;
    }



}

File 10 of 11 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 11 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"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":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"claimedAmount","type":"uint256"}],"name":"LOG_CLAIM_UNLOCKED","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"LOG_SET_UNLOCK_BLOCK_Time","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"factor","type":"uint256"}],"name":"LOG_SET_UNLOCK_FACTOR","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeAmount","type":"uint256"}],"name":"LOG_STAKE","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":"amount","type":"uint256"}],"name":"LOG_UNLOCK_TRANSFER","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"unstakeAmount","type":"uint256"}],"name":"LOG_UNSTAKE","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":"_totalUnlocked","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"claimUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"claimableUnlocked","outputs":[{"internalType":"uint256","name":"","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":"account","type":"address"}],"name":"getMineContract","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getUnlockBlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getUnlockFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"getUnlockSpeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mineContract","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintLockedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintUnlockedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"removeAuthorizedMintCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"setAuthorizedMintCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint8","name":"_lock","type":"uint8"}],"name":"setMineContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"_blockTime","type":"uint256"}],"name":"setUnlockBlockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"_factor","type":"uint256"}],"name":"setUnlockFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"totalUnlocked","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":"account","type":"address"}],"name":"unlockedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004fc738038062004fc78339818101604052810190620000379190620005a2565b818181600390805190602001906200005192919062000480565b5080600490805190602001906200006a92919062000480565b5050506200008d62000081620000ed60201b60201c565b620000f560201b60201c565b620000b9620000a1620000ed60201b60201c565b6a52b7d2dcc80cd2e4000000620001bb60201b60201c565b620000e5620000cd620000ed60201b60201c565b6a52b7d2dcc80cd2e40000006200033460201b60201c565b5050620008cc565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200022e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000225906200064d565b60405180910390fd5b62000242600083836200045e60201b60201c565b8060026000828254620002569190620006fc565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620002ad9190620006fc565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200031491906200066f565b60405180910390a362000330600083836200046360201b60201c565b5050565b6200038d81600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546200046860201b62001f771790919060201c565b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550620003ec81600c546200046860201b62001f771790919060201c565b600c819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fb5a2a645ea10b3aaf0b61965c340be4cf9ef443e7e784f656b3119e9f4dd130d836040516200045291906200066f565b60405180910390a35050565b505050565b505050565b60008183620004789190620006fc565b905092915050565b8280546200048e9062000799565b90600052602060002090601f016020900481019282620004b25760008555620004fe565b82601f10620004cd57805160ff1916838001178555620004fe565b82800160010185558215620004fe579182015b82811115620004fd578251825591602001919060010190620004e0565b5b5090506200050d919062000511565b5090565b5b808211156200052c57600081600090555060010162000512565b5090565b6000620005476200054184620006b5565b6200068c565b9050828152602081018484840111156200056057600080fd5b6200056d84828562000763565b509392505050565b600082601f8301126200058757600080fd5b81516200059984826020860162000530565b91505092915050565b60008060408385031215620005b657600080fd5b600083015167ffffffffffffffff811115620005d157600080fd5b620005df8582860162000575565b925050602083015167ffffffffffffffff811115620005fd57600080fd5b6200060b8582860162000575565b9150509250929050565b600062000624601f83620006eb565b91506200063182620008a3565b602082019050919050565b620006478162000759565b82525050565b60006020820190508181036000830152620006688162000615565b9050919050565b60006020820190506200068660008301846200063c565b92915050565b600062000698620006ab565b9050620006a68282620007cf565b919050565b6000604051905090565b600067ffffffffffffffff821115620006d357620006d262000863565b5b620006de8262000892565b9050602081019050919050565b600082825260208201905092915050565b6000620007098262000759565b9150620007168362000759565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200074e576200074d62000805565b5b828201905092915050565b6000819050919050565b60005b838110156200078357808201518184015260208101905062000766565b8381111562000793576000848401525b50505050565b60006002820490506001821680620007b257607f821691505b60208210811415620007c957620007c862000834565b5b50919050565b620007da8262000892565b810181811067ffffffffffffffff82111715620007fc57620007fb62000863565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6146eb80620008dc6000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c806379cc679011610130578063aa2d0100116100b8578063caad546e1161007c578063caad546e146106e8578063cb1a2a7714610718578063cd5599ad14610734578063dd62ed3e14610764578063f2fde38b1461079457610227565b8063aa2d010014610620578063adc9772e1461063c578063b31137361461066c578063c2a672e01461069c578063c7521922146106cc57610227565b8063a08fbe57116100ff578063a08fbe5714610556578063a457c2d714610572578063a5f1e282146105a2578063a779d080146105d2578063a9059cbb146105f057610227565b806379cc6790146104ce5780637b16e15f146104ea5780638da5cb5b1461051a57806395d89b411461053857610227565b8063399080ec116101b3578063617b8ced11610182578063617b8ced1461041857806370a0823114610434578063715018a614610464578063718489c51461046e578063795b81a81461049e57610227565b8063399080ec1461036c5780633a3dbc9a1461039c5780633fe9c253146103cc57806342966c68146103fc57610227565b806318160ddd116101fa57806318160ddd146102b45780631cc6b7d4146102d257806323b872dd146102ee578063313ce5671461031e578063395093511461033c57610227565b806306fdde031461022c578063095ea7b31461024a5780630dc47c3c1461027a578063116d872b14610296575b600080fd5b6102346107b0565b6040516102419190613b48565b60405180910390f35b610264600480360381019061025f919061364c565b610842565b6040516102719190613b2d565b60405180910390f35b610294600480360381019061028f919061364c565b610860565b005b61029e6109a4565b6040516102ab9190613e0a565b60405180910390f35b6102bc6109aa565b6040516102c99190613e0a565b60405180910390f35b6102ec60048036038101906102e7919061364c565b6109b4565b005b610308600480360381019061030391906135fd565b610aee565b6040516103159190613b2d565b60405180910390f35b610326610b74565b6040516103339190613e25565b60405180910390f35b6103566004803603810190610351919061364c565b610b7d565b6040516103639190613b2d565b60405180910390f35b61038660048036038101906103819190613598565b610c29565b6040516103939190613e0a565b60405180910390f35b6103b660048036038101906103b191906135c1565b610cb2565b6040516103c39190613e0a565b60405180910390f35b6103e660048036038101906103e19190613598565b610d4b565b6040516103f39190613e0a565b60405180910390f35b610416600480360381019061041191906136ed565b610d94565b005b610432600480360381019061042d919061364c565b610e50565b005b61044e60048036038101906104499190613598565b610f62565b60405161045b9190613e0a565b60405180910390f35b61046c610faa565b005b61048860048036038101906104839190613598565b611032565b6040516104959190613b2d565b60405180910390f35b6104b860048036038101906104b39190613598565b61113d565b6040516104c59190613e25565b60405180910390f35b6104e860048036038101906104e3919061364c565b61120f565b005b61050460048036038101906104ff9190613598565b6112cd565b6040516105119190613e0a565b60405180910390f35b61052261136a565b60405161052f9190613ab2565b60405180910390f35b610540611394565b60405161054d9190613b48565b60405180910390f35b610570600480360381019061056b9190613688565b611426565b005b61058c6004803603810190610587919061364c565b6114fe565b6040516105999190613b2d565b60405180910390f35b6105bc60048036038101906105b79190613598565b6115e9565b6040516105c99190613e0a565b60405180910390f35b6105da61164c565b6040516105e79190613e0a565b60405180910390f35b61060a6004803603810190610605919061364c565b611656565b6040516106179190613b2d565b60405180910390f35b61063a60048036038101906106359190613598565b611678565b005b6106566004803603810190610651919061364c565b61174f565b6040516106639190613b2d565b60405180910390f35b61068660048036038101906106819190613598565b611993565b6040516106939190613e25565b60405180910390f35b6106b660048036038101906106b1919061364c565b6119b3565b6040516106c39190613b2d565b60405180910390f35b6106e660048036038101906106e19190613598565b611b7d565b005b61070260048036038101906106fd9190613598565b611c54565b60405161070f9190613e0a565b60405180910390f35b610732600480360381019061072d919061364c565b611c9d565b005b61074e60048036038101906107499190613598565b611daf565b60405161075b9190613e0a565b60405180910390f35b61077e600480360381019061077991906135c1565b611df8565b60405161078b9190613e0a565b60405180910390f35b6107ae60048036038101906107a99190613598565b611e7f565b005b6060600380546107bf9061400f565b80601f01602080910402602001604051908101604052809291908181526020018280546107eb9061400f565b80156108385780601f1061080d57610100808354040283529160200191610838565b820191906000526020600020905b81548152906001019060200180831161081b57829003601f168201915b5050505050905090565b600061085661084f611f8d565b8484611f95565b6001905092915050565b61086861136a565b73ffffffffffffffffffffffffffffffffffffffff16610886611f8d565b73ffffffffffffffffffffffffffffffffffffffff1614806108f85750600660006108af611f8d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b610937576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092e90613d4a565b60405180910390fd5b6109418282612160565b61094b82826122c0565b6a52b7d2dcc80cd2e400000061095f6109aa565b11156109a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099790613d8a565b60405180910390fd5b5050565b600c5481565b6000600254905090565b6109bc61136a565b73ffffffffffffffffffffffffffffffffffffffff166109da611f8d565b73ffffffffffffffffffffffffffffffffffffffff161480610a4c575060066000610a03611f8d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b610a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8290613d4a565b60405180910390fd5b610a958282612160565b6a52b7d2dcc80cd2e4000000610aa96109aa565b1115610aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae190613d8a565b60405180910390fd5b5050565b6000610afb8484846123da565b610b0684848461265b565b6000610b128533611df8565b9050610b688533610b63866040518060400160405280601f81526020017f45524332303a205452414e534645525f414d4f554e545f455843454544454400815250866129f29092919063ffffffff16565b611f95565b60019150509392505050565b60006012905090565b6000610c1f610b8a611f8d565b848460016000610b98611f8d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610c1a9190613e72565b611f95565b6001905092915050565b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b600080600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610d4283858360000154612a47565b91505092915050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610d9d81612b34565b610def81600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b4890919063ffffffff16565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610e4781600c54612b4890919063ffffffff16565b600c8190555050565b610e58611f8d565b73ffffffffffffffffffffffffffffffffffffffff16610e7661136a565b73ffffffffffffffffffffffffffffffffffffffff1614610ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec390613c6a565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167ffbd482c9dea78c178879b07a2daa165a1348ac031421bb9917d8734de948fca382604051610f569190613e0a565b60405180910390a25050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fb2611f8d565b73ffffffffffffffffffffffffffffffffffffffff16610fd061136a565b73ffffffffffffffffffffffffffffffffffffffff1614611026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101d90613c6a565b60405180910390fd5b6110306000612b5e565b565b600080600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006110c9338584600001548560010154612c24565b90506110da33858460000154612ca4565b6110e43382612db1565b3373ffffffffffffffffffffffffffffffffffffffff167f9b0d7ec397f0d7459574b710fa67fcdfc3d3c80ca2d0c1a84a67dd566464b2988260405161112a9190613e0a565b60405180910390a2600192505050919050565b6000611147611f8d565b73ffffffffffffffffffffffffffffffffffffffff1661116561136a565b73ffffffffffffffffffffffffffffffffffffffff16146111bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b290613c6a565b60405180910390fd5b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6112198282612ede565b61126b81600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b4890919063ffffffff16565b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506112c381600c54612b4890919063ffffffff16565b600c819055505050565b600080600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050611362338483600001548460010154612c24565b915050919050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546113a39061400f565b80601f01602080910402602001604051908101604052809291908181526020018280546113cf9061400f565b801561141c5780601f106113f15761010080835404028352916020019161141c565b820191906000526020600020905b8154815290600101906020018083116113ff57829003601f168201915b5050505050905090565b61142e611f8d565b73ffffffffffffffffffffffffffffffffffffffff1661144c61136a565b73ffffffffffffffffffffffffffffffffffffffff16146114a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149990613c6a565b60405180910390fd5b80600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505050565b6000806001600061150d611f8d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190613daa565b60405180910390fd5b6115de6115d5611f8d565b85858403611f95565b600191505092915050565b6000611645600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461163784610f62565b612b4890919063ffffffff16565b9050919050565b6000600c54905090565b60006116633384846123da565b61166e33848461265b565b6001905092915050565b611680611f8d565b73ffffffffffffffffffffffffffffffffffffffff1661169e61136a565b73ffffffffffffffffffffffffffffffffffffffff16146116f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116eb90613c6a565b60405180910390fd5b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600080600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116117d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c990613dca565b60405180910390fd5b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184b90613d2a565b60405180910390fd5b61185f833384612f59565b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006118f5338684600001548560010154612c24565b90506119183386611913878660000154611f7790919063ffffffff16565b612ca4565b6119223382612db1565b8473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc21b429107df2ac940fc444798554039f5c34696739d39ef7d39fa0abb4a9fc78660405161197f9190613e0a565b60405180910390a360019250505092915050565b600a6020528060005260406000206000915054906101000a900460ff1681565b60008082116119f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ee90613c2a565b60405180910390fd5b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060000154831115611abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab590613bea565b60405180910390fd5b6000611ad4338684600001548560010154612c24565b9050611af73386611af2878660000154612b4890919063ffffffff16565b612ca4565b611b013382612db1565b611b0c853386612f8b565b8473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f1ddc13fab879f36a0016ded03412386f11de571437df12605dc0607742bd82c286604051611b699190613e0a565b60405180910390a360019250505092915050565b611b85611f8d565b73ffffffffffffffffffffffffffffffffffffffff16611ba361136a565b73ffffffffffffffffffffffffffffffffffffffff1614611bf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf090613c6a565b60405180910390fd5b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611ca5611f8d565b73ffffffffffffffffffffffffffffffffffffffff16611cc361136a565b73ffffffffffffffffffffffffffffffffffffffff1614611d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1090613c6a565b60405180910390fd5b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167ff9e78c7139f74364fb9b5b2436f77a147d31022fa52e053f0da12a2de3ea5a6382604051611da39190613e0a565b60405180910390a25050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611e87611f8d565b73ffffffffffffffffffffffffffffffffffffffff16611ea561136a565b73ffffffffffffffffffffffffffffffffffffffff1614611efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef290613c6a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6290613baa565b60405180910390fd5b611f7481612b5e565b50565b60008183611f859190613e72565b905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612005576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ffc90613cea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612075576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206c90613bca565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516121539190613e0a565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c790613dea565b60405180910390fd5b6121dc60008383612fbb565b80600260008282546121ee9190613e72565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122439190613e72565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516122a89190613e0a565b60405180910390a36122bc60008383612fc0565b5050565b61231281600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f7790919063ffffffff16565b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061236a81600c54611f7790919063ffffffff16565b600c819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fb5a2a645ea10b3aaf0b61965c340be4cf9ef443e7e784f656b3119e9f4dd130d836040516123ce9190613e0a565b60405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561244a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244190613cca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b190613b6a565b60405180910390fd5b6124c5838383612fbb565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561254b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254290613c0a565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125de9190613e72565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516126429190613e0a565b60405180910390a3612655848484612fc0565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c290613cca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561273b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273290613b6a565b60405180910390fd5b6127a7816040518060600160405280602f8152602001614687602f9139600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129f29092919063ffffffff16565b600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061283c81600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f7790919063ffffffff16565b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1614156129885761292981600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b4890919063ffffffff16565b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061298181600c54612b4890919063ffffffff16565b600c819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fb5a2a645ea10b3aaf0b61965c340be4cf9ef443e7e784f656b3119e9f4dd130d836040516129e59190613e0a565b60405180910390a3505050565b6000838311158290612a3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a319190613b48565b60405180910390fd5b5082840390509392505050565b600080612a53846115e9565b90506000612aa984600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612fc590919063ffffffff16565b90506000612b19600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b0b670de0b6b3a764000086612fc590919063ffffffff16565b612fdb90919063ffffffff16565b905080821115612b27578091505b8193505050509392505050565b612b45612b3f611f8d565b82612ff1565b50565b60008183612b569190613f53565b905092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080612c32858786612a47565b90506000612c498442612b4890919063ffffffff16565b90506000612c7a670de0b6b3a7640000612c6c8486612fc590919063ffffffff16565b612fdb90919063ffffffff16565b90506000612c87896115e9565b905080821115612c95578091505b81945050505050949350505050565b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555042600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550505050565b6000612e1f82612e11600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e0387610f62565b612b4890919063ffffffff16565b612b4890919063ffffffff16565b1015612e2a57600080fd5b612e7c81600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f7790919063ffffffff16565b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612ed481600c54611f7790919063ffffffff16565b600c819055505050565b6000612ef183612eec611f8d565b611df8565b905081811015612f36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2d90613c8a565b60405180910390fd5b612f4a83612f42611f8d565b848403611f95565b612f548383612ff1565b505050565b612f868230838673ffffffffffffffffffffffffffffffffffffffff166131c8909392919063ffffffff16565b505050565b612fb682828573ffffffffffffffffffffffffffffffffffffffff166132519092919063ffffffff16565b505050565b505050565b505050565b60008183612fd39190613ef9565b905092915050565b60008183612fe99190613ec8565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305890613caa565b60405180910390fd5b61306d82600083612fbb565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156130f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ea90613b8a565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816002600082825461314a9190613f53565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131af9190613e0a565b60405180910390a36131c383600084612fc0565b505050565b61324b846323b872dd60e01b8585856040516024016131e993929190613acd565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506132d7565b50505050565b6132d28363a9059cbb60e01b8484604051602401613270929190613b04565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506132d7565b505050565b6000613339826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661339e9092919063ffffffff16565b9050600081511115613399578080602001905181019061335991906136c4565b613398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338f90613d6a565b60405180910390fd5b5b505050565b60606133ad84846000856133b6565b90509392505050565b6060824710156133fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133f290613c4a565b60405180910390fd5b613404856134ca565b613443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343a90613d0a565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161346c9190613a9b565b60006040518083038185875af1925050503d80600081146134a9576040519150601f19603f3d011682016040523d82523d6000602084013e6134ae565b606091505b50915091506134be8282866134dd565b92505050949350505050565b600080823b905060008111915050919050565b606083156134ed5782905061353d565b6000835111156135005782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135349190613b48565b60405180910390fd5b9392505050565b6000813590506135538161462a565b92915050565b60008151905061356881614641565b92915050565b60008135905061357d81614658565b92915050565b6000813590506135928161466f565b92915050565b6000602082840312156135aa57600080fd5b60006135b884828501613544565b91505092915050565b600080604083850312156135d457600080fd5b60006135e285828601613544565b92505060206135f385828601613544565b9150509250929050565b60008060006060848603121561361257600080fd5b600061362086828701613544565b935050602061363186828701613544565b92505060406136428682870161356e565b9150509250925092565b6000806040838503121561365f57600080fd5b600061366d85828601613544565b925050602061367e8582860161356e565b9150509250929050565b6000806040838503121561369b57600080fd5b60006136a985828601613544565b92505060206136ba85828601613583565b9150509250929050565b6000602082840312156136d657600080fd5b60006136e484828501613559565b91505092915050565b6000602082840312156136ff57600080fd5b600061370d8482850161356e565b91505092915050565b61371f81613f87565b82525050565b61372e81613f99565b82525050565b600061373f82613e40565b6137498185613e56565b9350613759818560208601613fdc565b80840191505092915050565b600061377082613e4b565b61377a8185613e61565b935061378a818560208601613fdc565b613793816140ce565b840191505092915050565b60006137ab602383613e61565b91506137b6826140df565b604082019050919050565b60006137ce602283613e61565b91506137d98261412e565b604082019050919050565b60006137f1602683613e61565b91506137fc8261417d565b604082019050919050565b6000613814602283613e61565b915061381f826141cc565b604082019050919050565b6000613837601e83613e61565b91506138428261421b565b602082019050919050565b600061385a602683613e61565b915061386582614244565b604082019050919050565b600061387d601a83613e61565b915061388882614293565b602082019050919050565b60006138a0602683613e61565b91506138ab826142bc565b604082019050919050565b60006138c3602083613e61565b91506138ce8261430b565b602082019050919050565b60006138e6602483613e61565b91506138f182614334565b604082019050919050565b6000613909602183613e61565b915061391482614383565b604082019050919050565b600061392c602583613e61565b9150613937826143d2565b604082019050919050565b600061394f602483613e61565b915061395a82614421565b604082019050919050565b6000613972601d83613e61565b915061397d82614470565b602082019050919050565b6000613995601983613e61565b91506139a082614499565b602082019050919050565b60006139b8602183613e61565b91506139c3826144c2565b604082019050919050565b60006139db602a83613e61565b91506139e682614511565b604082019050919050565b60006139fe601c83613e61565b9150613a0982614560565b602082019050919050565b6000613a21602583613e61565b9150613a2c82614589565b604082019050919050565b6000613a44601583613e61565b9150613a4f826145d8565b602082019050919050565b6000613a67601f83613e61565b9150613a7282614601565b602082019050919050565b613a8681613fc5565b82525050565b613a9581613fcf565b82525050565b6000613aa78284613734565b915081905092915050565b6000602082019050613ac76000830184613716565b92915050565b6000606082019050613ae26000830186613716565b613aef6020830185613716565b613afc6040830184613a7d565b949350505050565b6000604082019050613b196000830185613716565b613b266020830184613a7d565b9392505050565b6000602082019050613b426000830184613725565b92915050565b60006020820190508181036000830152613b628184613765565b905092915050565b60006020820190508181036000830152613b838161379e565b9050919050565b60006020820190508181036000830152613ba3816137c1565b9050919050565b60006020820190508181036000830152613bc3816137e4565b9050919050565b60006020820190508181036000830152613be381613807565b9050919050565b60006020820190508181036000830152613c038161382a565b9050919050565b60006020820190508181036000830152613c238161384d565b9050919050565b60006020820190508181036000830152613c4381613870565b9050919050565b60006020820190508181036000830152613c6381613893565b9050919050565b60006020820190508181036000830152613c83816138b6565b9050919050565b60006020820190508181036000830152613ca3816138d9565b9050919050565b60006020820190508181036000830152613cc3816138fc565b9050919050565b60006020820190508181036000830152613ce38161391f565b9050919050565b60006020820190508181036000830152613d0381613942565b9050919050565b60006020820190508181036000830152613d2381613965565b9050919050565b60006020820190508181036000830152613d4381613988565b9050919050565b60006020820190508181036000830152613d63816139ab565b9050919050565b60006020820190508181036000830152613d83816139ce565b9050919050565b60006020820190508181036000830152613da3816139f1565b9050919050565b60006020820190508181036000830152613dc381613a14565b9050919050565b60006020820190508181036000830152613de381613a37565b9050919050565b60006020820190508181036000830152613e0381613a5a565b9050919050565b6000602082019050613e1f6000830184613a7d565b92915050565b6000602082019050613e3a6000830184613a8c565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000613e7d82613fc5565b9150613e8883613fc5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ebd57613ebc614041565b5b828201905092915050565b6000613ed382613fc5565b9150613ede83613fc5565b925082613eee57613eed614070565b5b828204905092915050565b6000613f0482613fc5565b9150613f0f83613fc5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f4857613f47614041565b5b828202905092915050565b6000613f5e82613fc5565b9150613f6983613fc5565b925082821015613f7c57613f7b614041565b5b828203905092915050565b6000613f9282613fa5565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015613ffa578082015181840152602081019050613fdf565b83811115614009576000848401525b50505050565b6000600282049050600182168061402757607f821691505b6020821081141561403b5761403a61409f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20554e5354414b455f414d4f554e545f45584345454445440000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a205a45524f5f554e5354414b455f414d4f554e54000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f45524332303a20424c4f434b5f54696d655f4e4f545f53455400000000000000600082015250565b7f43524544413a204d494e545f43414c4c45525f4e4f545f415554484f52495a4560008201527f4400000000000000000000000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f45524332303a20544f54414c5f535550504c595f455843454544454400000000600082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20464143544f525f4e4f545f5345540000000000000000000000600082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b61463381613f87565b811461463e57600080fd5b50565b61464a81613f99565b811461465557600080fd5b50565b61466181613fc5565b811461466c57600080fd5b50565b61467881613fcf565b811461468357600080fd5b5056fe45524332303a207472616e7366657220616d6f756e74206578636565647320756e6c6f636b65642062616c616e6365a26469706673582212207e68d7d824331c73093c56c33909f15fbc5dd3a592b55da370f64c5488f640b364736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001443726544412050726f746f636f6c20546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000054352454441000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001443726544412050726f746f636f6c20546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000054352454441000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): CreDA Protocol Token
Arg [1] : symbol_ (string): CREDA

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [3] : 43726544412050726f746f636f6c20546f6b656e000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 4352454441000000000000000000000000000000000000000000000000000000


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