Contract 0xbD2173E33aE4f2fB482e139Db4d5c2EF1F9AA181

 
Token migration announcement. BetVerse token contract has migrated to a new address.

Contract Overview

BetVerse: Old BVT Token 2
Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0xe5555395a1a20d147abb2456d276ac48bbe914dbfeeb11dbdb2fe7bffcca295aTransfer374727542022-12-30 19:46:4340 days 11 hrs ago0x093dd3002fe72c9c1c4501ff02e18ad178d01d87 IN  BetVerse: Old BVT Token 20 MATIC0.002264083699 48.430633804
0xb899a5923562955c8a1ef53e642a45e9ad9396b6033cf11fbb1781fc99a04120Transfer374726332022-12-30 19:42:3340 days 11 hrs ago0x18db1b9df3bb74a01ac727cdb39a9db1743ab1df IN  BetVerse: Old BVT Token 20 MATIC0.003221753399 68.915985353
0xed856dfde6808245aea4602561317fbe1cd6bb2e21cb521e8b39d1e06a70b947Transfer360118402022-11-24 14:53:4676 days 16 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.006082782118
0x2a9b1dbba8a01679b08878814895c444a26eb2aca9964ea63160c0a538ad9a01Transfer360111212022-11-24 14:26:5276 days 16 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.005053794298 146.754778244
0x370e8eb6abb0b34bd7a19a75e9d350843fa22e35a1f09b3050639189f202a9f7Transfer360108782022-11-24 14:18:2176 days 16 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.010158915295
0x82780395d6ab73c23ff87c0953630e74f736cab9fa1b4a385fe15df59570fbd3Unstake357823342022-11-19 1:21:2182 days 5 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.006359667 101
0xd06bf6c3c74f7de35a54ae82e78b61c07533f15be5cb49c0e790c25cdf0983c8Stake357823172022-11-19 1:20:4782 days 5 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.013863388 92
0x3a0219cd24bb9eab970e8a6acb752116be8e21d20d7063fe369f8749d8d879e8Unstake357820832022-11-19 1:12:4782 days 5 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.008544608 136
0x9a55bb511d82c8dde81fdfe3ac5775a1e6892bfa3b4abc446121c7e7442c01e1Stake357820742022-11-19 1:12:2582 days 5 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.022754039 151
0x8ae0f1ac03b94a3e79a4ee9ebce53d36329f9e03395d4f1f05c8517d5973307dUnstake357817922022-11-19 1:02:4582 days 5 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.00665826 105
0x6686f94a4bb09cd3d54e8c6ba2832dae46cc08a9f3183edfaf6608c9fbcf09cbStake357817732022-11-19 1:02:0782 days 5 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.019438881 129
0x7de07bc81e69c354ee0ba08eb75ac25b7413566443c3db2e8b831b07a7fb7ce2Unstake357721252022-11-18 19:24:0082 days 11 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.00760944 120
0x0a03064535d5b939bc01895affd8fae338eddb245af9bffcc99152a0ada820f7Stake357721042022-11-18 19:23:1882 days 11 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.01808268 120
0x8e01567f0a74d6cb088394734f9094cde9eddcddd851a7da0118448f768fe4baTransfer356834042022-11-16 15:22:5184 days 15 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.002549679337 74.038950462
0x59e873390a8d3cba360a074d914efd17dc8210c0b00f5e5997b2a333a1b36f94Transfer356831292022-11-16 15:13:2184 days 15 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.00304139159
0x40b8bedf750d17e1e7259aabaaa64328136112ce99df5de50695ea3948add4b3Transfer356830502022-11-16 15:10:3984 days 15 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.00244502771
0x76882d1b65804e90d459915cea4c02260a94c2ca4ec94083edc3104389de5619Transfer355312722022-11-12 22:47:5088 days 8 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.00113642133
0x4976f6046b74c9571e93b0e4c56017016b26a196ba995b612ce367a7a953492bTransfer355312352022-11-12 22:46:3288 days 8 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.001035520592 30.070000071
0x3953194aa3b9f5f64e49183a721f9b9e42e18a39fe9d1102ec858ee4b1641b4aTransfer355173762022-11-12 13:52:2688 days 17 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.018475794349358.49572831
0x3d071facf42cfd2b783a7a55ff12c211173dff8c53d74ede835343c14c14515aTransfer355162192022-11-12 13:12:2888 days 17 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.1465669960122,843.91788448
0xfaaafb77433fc62c59a52f39051e8d14917e97e575a2d95688d7c16a8fb2878bTransfer355147492022-11-12 12:15:4088 days 18 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.012533647208363.95874229
0x25b500870bae50870f830d8c65028708fdb9cd80a816908378e90ae48972a9e2Transfer354830942022-11-11 16:08:0989 days 14 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.0682930551781,983.13021396
0x413bc4bda8bc367e941eec9ee6c87590f6046c910c08a69e44119db4747af712Transfer354827202022-11-11 15:53:0989 days 15 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.040665716481789.05866623
0x20d58010308b51bbad2d150ee3cd4bdef090beee5ca0661d066ccbbc3279cdadTransfer354435502022-11-10 16:13:3290 days 14 hrs ago0xf69bc44575272eeecc177a4d467ef7f01dbeaf8e IN  BetVerse: Old BVT Token 20 MATIC0.014958581992290.181807459
0xfed362a7d90c991ffcc99ba8213e5d367357257506d512c0e2d313f674785101Transfer354410612022-11-10 14:47:5890 days 16 hrs ago0x4eeb4a2ee4519951ddb3c920c35e661ffcf1a272 IN  BetVerse: Old BVT Token 20 MATIC0.009938009627 192.832520857
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200000 runs

Other Settings:
byzantium EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : Token.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.14;

import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import './utils/Interest.sol';

contract Token is ERC20, Ownable, Interest, ReentrancyGuard {
    using SafeMath for uint256;

    uint256 public minAmountToStake;
    uint256 public totalStaked;
    uint256 public numberOfPeopleStaking;
    uint256 public startDateSmartContract;
    uint256 public ratePerYearInWei;
    uint256 public stakingStart;
    uint256 public stakingDuration;
    uint256 public stakingEndDate;
    uint256 public maxAmountManuallyMintable;
    uint256 public cap;

    mapping(address => Internal) public internalAddresses;

    mapping(address => Deposit) public deposits;

    struct Internal {
        bool isInternal;
    }

    struct Deposit {
        uint256 amount;
        uint256 startdate;
    }

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 cap_,
        uint256 ratePerYearInWei_,
        uint256 maxAmountManuallyMintable_,
        uint256 stakingDuration_,
        uint256 minAmountToStake_
    ) ERC20(name_, symbol_) {
        require(
            ratePerYearInWei_ >= 100000000000000000 && ratePerYearInWei_ <= 200000000000000000,
            'The ratePerYearInWei_ must be between 0.1 and 0.2 ethers'
        );

        require(
            maxAmountManuallyMintable_ >= 400000000 * 1 ether && maxAmountManuallyMintable_ <= 400000002 * 1 ether,
            'The maxAmountManuallyMintable_ must be between 400M and 500M ethers'
        );

        require(
            stakingDuration_ >= 1 * 365 days && stakingDuration_ <= 10 * 365 days,
            'The stakingDuration_ must be between 1 and 10 years'
        );

        ratePerYearInWei = ratePerYearInWei_;
        cap = cap_;
        maxAmountManuallyMintable = maxAmountManuallyMintable_;
        stakingStart = block.timestamp;
        stakingDuration = stakingDuration_;
        stakingEndDate = block.timestamp + stakingDuration;
        minAmountToStake = minAmountToStake_;
        emit tokenInitialed(address(this), block.timestamp);
    }

    function mint(address _account, uint256 _amount)
        external
        onlyOwner
        maxAmountManuallyMintableNotReached(_amount)
        nonReentrant
    {
        _mint(_account, _amount);
        emit tokenMintedSuccess(_account, _amount, block.timestamp);
    }

    function burn(address _account, uint256 _amount) external onlyOwner isAnInternalAddress(_account) {
        _burn(_account, _amount);
        emit tokenBurnedSuccess(_account, _amount, block.timestamp);
    }

    function stake(uint256 amount_)
        external
        nonReentrant
        isStakingActive
        isNotAnInternalAddress(msg.sender)
        isNotYetStaking(msg.sender)
        hasTheMinAmountToStake(amount_)
    {
        transferUsersFundsToThisContract(amount_);
        createDeposit(amount_);
        increaseTheTotalStakedAmount(amount_);
        emit stakeSuccess(msg.sender, amount_, block.timestamp);
    }

    function unstake() external nonReentrant isAlreadyStaking(msg.sender) {
        Deposit memory _deposit = deposits[msg.sender];
        payUsersProfits(_deposit);
        returnUsersFunds(_deposit);
        decreaseTheTotalStakedAmount(_deposit);
        deleteDeposit();
        emit unstakeSuccess(msg.sender, deposits[msg.sender].amount, block.timestamp);
    }

    function createDeposit(uint256 amount) internal {
        deposits[msg.sender] = Deposit(amount, block.timestamp);
    }

    function deleteDeposit() internal {
        delete deposits[msg.sender];
    }

    function increaseTheTotalStakedAmount(uint256 amount_) internal {
        totalStaked = totalStaked.add(amount_);
        numberOfPeopleStaking++;
    }

    function decreaseTheTotalStakedAmount(Deposit memory _deposit) internal {
        totalStaked = totalStaked.sub(_deposit.amount);
        numberOfPeopleStaking--;
    }

    function payUsersProfits(Deposit memory _deposit) internal {
        uint256 profit = getProfits(_deposit);
        if (profit > 0) _mint(msg.sender, profit);
    }

    function returnUsersFunds(Deposit memory _deposit) internal {
        _transfer(address(this), msg.sender, _deposit.amount);
    }

    function transferUsersFundsToThisContract(uint256 amount_) internal {
        _transfer(msg.sender, address(this), amount_);
    }

    function calculateInterest(Deposit memory deposit) public view returns (uint256) {
        uint256 userStakingStartDate = deposit.startdate;
        uint256 stakingAge = block.timestamp.sub(userStakingStartDate);
        uint256 stakedAmount = deposit.amount;
        return accrueYearlyRateInterest(stakedAmount, ratePerYearInWei, stakingAge);
    }

    function getProfits(Deposit memory deposit) public view returns (uint256) {
        if (!isStaking(deposit)) return 0;
        uint256 interest = calculateInterest(deposit);
        uint256 profit = interest.sub(deposit.amount);
        return profit;
    }

    function setMinAmountToStake(uint256 _minAmountToStake) external onlyOwner {
        minAmountToStake = _minAmountToStake;
        emit setMinAmountToStakeSuccess(_minAmountToStake);
    }

    function setStartDateSmartContract() external onlyOwner {
        startDateSmartContract = block.timestamp;
        emit setStartDateSmartContractSuccess(msg.sender, startDateSmartContract);
    }

    function setInternalAddress(address _address) external onlyOwner {
        require(startDateSmartContract == 0, "You can only add any address to this list before the contract's initialization.");
        internalAddresses[_address] = Internal(true);
        emit setInternalAddressSuccess(_address);
    }

    modifier isAnInternalAddress(address _address) {
        require(internalAddresses[_address].isInternal, 'It must be an internal address.');
        _;
    }

    modifier isNotAnInternalAddress(address _address) {
        require(!internalAddresses[_address].isInternal, 'It must be an external address.');
        _;
    }

    modifier maxAmountManuallyMintableNotReached(uint256 _amountToMint) {
        uint256 currentSupplyPlusAmountToMint = this.totalSupply().add(_amountToMint);
        require(
            currentSupplyPlusAmountToMint <= maxAmountManuallyMintable,
            'Total supply will exceed maxAmountManuallyMintable after mint'
        );
        _;
    }

    modifier isStakingActive() {
        require(
            (stakingEndDate > 0 && (stakingEndDate >= block.timestamp)),
            'The staking was not yet activated or ended already the period.'
        );
        _;
    }

    modifier hasTheMinAmountToStake(uint256 amount_) {
        require(amount_ >= minAmountToStake, 'To stake, you must have the minimum amount of coins required.');
        _;
    }

    modifier isNotYetStaking(address _address) {
        require(!isStaking(deposits[_address]), 'Your address is already staking.');
        _;
    }

    modifier isAlreadyStaking(address _address) {
        require(isStaking(deposits[_address]), 'You must be staking in order to unstake.');
        _;
    }

    function isStaking(Deposit memory deposit) public pure returns (bool) {
        return (deposit.amount > 0 && deposit.startdate > 0);
    }

    event tokenInitialed(address indexed _who, uint256 timestamp);

    event unstakeSuccess(address indexed _who, uint256 _amount, uint256 timestamp);

    event stakeSuccess(address indexed _who, uint256 _amount, uint256 timestamp);

    event tokenMintedSuccess(address indexed _who, uint256 _amount, uint256 timestamp);

    event tokenBurnedSuccess(address indexed _who, uint256 _amount, uint256 timestamp);

    event setInternalAddressSuccess(address indexed _address);

    event setMinAmountToStakeSuccess(uint256 _amount);

    event setStartDateSmartContractSuccess(address indexed _who, uint256 timestamp);
}

File 2 of 10 : Interest.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.14;

import "./DSMath.sol";

// Using DSMath from DappHub https://github.com/dapphub/ds-math
// More info on DSMath and fixed point arithmetic in Solidity:
// https://medium.com/dapphub/introducing-ds-math-an-innovative-safe-math-library-d58bc88313da

/**
* @title Interest
* @author Nick Ward
* @dev Uses DSMath's wad and ray math to implement (approximately)
* continuously compounding interest by calculating discretely compounded
* interest compounded every second.
*/

contract Interest is DSMath {

    //// Fixed point scale factors
    // wei -> the base unit
    // wad -> wei * 10 ** 18. 1 ether = 1 wad, so 0.5 ether can be used
    //      to represent a decimal wad of 0.5
    // ray -> wei * 10 ** 27

    // Go from wad (10**18) to ray (10**27)
    function wadToRay(uint _wad) internal pure returns (uint) {
        return mul(_wad, 10 ** 9);
    }

    // Go from wei to ray (10**27)
    function weiToRay(uint _wei) internal pure returns (uint) {
        return mul(_wei, 10 ** 27);
    } 


    /**
    * @dev Uses an approximation of continuously compounded interest 
    * (discretely compounded every second)
    * @param _principal The principal to calculate the interest on.
    *   Accepted in wei.
    * @param _rate The interest rate. Accepted as a ray representing 
    *   1 + the effective interest rate per second, compounded every 
    *   second. As an example:
    *   I want to accrue interest at a nominal rate (i) of 5.0% per year 
    *   compounded continuously. (Effective Annual Rate of 5.127%).
    *   This is approximately equal to 5.0% per year compounded every 
    *   second (to 8 decimal places, if max precision is essential, 
    *   calculate nominal interest per year compounded every second from 
    *   your desired effective annual rate). Effective Rate Per Second = 
    *   Nominal Rate Per Second compounded every second = Nominal Rate 
    *   Per Year compounded every second * conversion factor from years 
    *   to seconds
    *   Effective Rate Per Second = 0.05 / (365 days/yr * 86400 sec/day) = 1.5854895991882 * 10 ** -9
    *   The value we want to send this function is 
    *   1 * 10 ** 27 + Effective Rate Per Second * 10 ** 27
    *   = 1000000001585489599188229325
    *   This will return 5.1271096334354555 Dai on a 100 Dai principal 
    *   over the course of one year (31536000 seconds)
    * @param _age The time period over which to accrue interest. Accepted
    *   in seconds.
    * @return The new principal as a wad. Equal to original principal + 
    *   interest accrued
    */
    function accrueInterest(uint _principal, uint _rate, uint _age) public pure returns (uint) {
        return rmul(_principal, rpow(_rate, _age));
    }

    //1000000000000000000000000,500000000000000000,10368000
    // Eu somente precisoo enviar o balance do usuario no principal.
    // Por exemplo. Se ele tem 1 moeda, então é o balance que ele iniciou o staking
    // 1 ether = 1 * 10**18 => 1 + 18 ZEROS => 1 000 000 000 000 000 000 => 1
    // o rate é =POW(10,18)*0.5
    // Nunca posso enviar em decimal então eu multiplico 0.5 * 10 elevado 18 potência (10ˆ18) ou (10**10)
    // Isso dá 500000000000000000
    // o _age é o tempo em staking 
    // block.timestamp (AGORA) - a data que ele fez o stacking
    // Tudo em epoch. Segundos.
    function accrueYearlyRateInterest(uint _principal, uint _rate, uint _age) public pure returns (uint) {
        return rmul(_principal, rpow(yearlyRateToRay(_rate), _age));
    }

    /**
    * @dev Takes in the desired nominal interest rate per year, compounded
    *   every second (this is approximately equal to nominal interest rate
    *   per year compounded continuously). Returns the ray value expected
    *   by the accrueInterest function 
    * @param _rateWad A wad of the desired nominal interest rate per year,
    *   compounded continuously. Converting from ether to wei will effectively
    *   convert from a decimal value to a wad. So 5% rate = 0.05
    *   should be input as yearlyRateToRay( 0.05 ether )
    * @return 1 * 10 ** 27 + Effective Interest Rate Per Second * 10 ** 27
    */
    function yearlyRateToRay(uint _rateWad) public pure returns (uint) {
        return add(wadToRay(1 ether), rdiv(wadToRay(_rateWad), weiToRay(365*86400)));
    }
}

File 3 of 10 : DSMath.sol
// DSMath from DappHub -> https://github.com/dapphub/ds-math/blob/784079b72c4d782b022b3e893a7c5659aa35971a/src/math.sol

/// math.sol -- mixin for inline numerical wizardry

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

contract DSMath {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }
    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x, "ds-math-sub-underflow");
    }
    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
    }

    function min(uint x, uint y) internal pure returns (uint z) {
        return x <= y ? x : y;
    }
    function max(uint x, uint y) internal pure returns (uint z) {
        return x >= y ? x : y;
    }
    function imin(int x, int y) internal pure returns (int z) {
        return x <= y ? x : y;
    }
    function imax(int x, int y) internal pure returns (int z) {
        return x >= y ? x : y;
    }

    uint constant WAD = 10 ** 18;
    uint constant RAY = 10 ** 27;

    function wmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), WAD / 2) / WAD;
    }
    function rmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), RAY / 2) / RAY;
    }
    function wdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, WAD), y / 2) / y;
    }
    function rdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, RAY), y / 2) / y;
    }

    // This famous algorithm is called "exponentiation by squaring"
    // and calculates x^n with x as fixed-point and n as regular unsigned.
    //
    // It's O(log n), instead of O(n) for naive repeated multiplication.
    //
    // These facts are why it works:
    //
    //  If n is even, then x^n = (x^2)^(n/2).
    //  If n is odd,  then x^n = x * x^(n-1),
    //   and applying the equation for even x gives
    //    x^n = x * (x^2)^((n-1) / 2).
    //
    //  Also, EVM division is flooring and
    //    floor[(n-1) / 2] = floor[n / 2].
    //
    function rpow(uint x, uint n) internal pure returns (uint z) {
        z = n % 2 != 0 ? x : RAY;

        for (n /= 2; n != 0; n /= 2) {
            x = rmul(x, x);

            if (n % 2 != 0) {
                z = rmul(z, x);
            }
        }
    }
}

File 4 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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 subtraction 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 5 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 6 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

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

File 7 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 8 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 9 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 10 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"cap_","type":"uint256"},{"internalType":"uint256","name":"ratePerYearInWei_","type":"uint256"},{"internalType":"uint256","name":"maxAmountManuallyMintable_","type":"uint256"},{"internalType":"uint256","name":"stakingDuration_","type":"uint256"},{"internalType":"uint256","name":"minAmountToStake_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"setInternalAddressSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMinAmountToStakeSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_who","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setStartDateSmartContractSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_who","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"stakeSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_who","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"tokenBurnedSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_who","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"tokenInitialed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_who","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"tokenMintedSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_who","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"unstakeSuccess","type":"event"},{"inputs":[{"internalType":"uint256","name":"_principal","type":"uint256"},{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_age","type":"uint256"}],"name":"accrueInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_principal","type":"uint256"},{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_age","type":"uint256"}],"name":"accrueYearlyRateInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startdate","type":"uint256"}],"internalType":"struct Token.Deposit","name":"deposit","type":"tuple"}],"name":"calculateInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","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":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startdate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startdate","type":"uint256"}],"internalType":"struct Token.Deposit","name":"deposit","type":"tuple"}],"name":"getProfits","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":"","type":"address"}],"name":"internalAddresses","outputs":[{"internalType":"bool","name":"isInternal","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startdate","type":"uint256"}],"internalType":"struct Token.Deposit","name":"deposit","type":"tuple"}],"name":"isStaking","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"maxAmountManuallyMintable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minAmountToStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfPeopleStaking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratePerYearInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setInternalAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountToStake","type":"uint256"}],"name":"setMinAmountToStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStartDateSmartContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingEndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startDateSmartContract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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":[],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rateWad","type":"uint256"}],"name":"yearlyRateToRay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]

60806040523480156200001157600080fd5b50604051620029e4380380620029e4833981016040819052620000349162000521565b8651879087906200004d90600390602085019062000395565b5080516200006390600490602084019062000395565b50505062000092620000836200033f640100000000026401000000009004565b64010000000062000343810204565b600160065567016345785d8a00008410801590620000b857506702c68af0bb1400008411155b6200014a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f546865207261746550657259656172496e5765695f206d75737420626520626560448201527f747765656e20302e3120616e6420302e3220657468657273000000000000000060648201526084015b60405180910390fd5b6b014adf4b7320334b9000000083101580156200017357506b014adf4b8ee1a0b2dec800008311155b62000227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604360248201527f546865206d6178416d6f756e744d616e75616c6c794d696e7461626c655f206d60448201527f757374206265206265747765656e203430304d20616e64203530304d2065746860648201527f6572730000000000000000000000000000000000000000000000000000000000608482015260a40162000141565b6301e1338082101580156200024057506312cc03008211155b620002ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603360248201527f546865207374616b696e674475726174696f6e5f206d7573742062652062657460448201527f7765656e203120616e6420313020796561727300000000000000000000000000606482015260840162000141565b600b8490556010859055600f83905542600c819055600d839055620002f5908390620005ba565b600e55600781905560405142815230907fd43e59d66e93b01e962e732c2a079b6d65a8a6fc9f65d6020d471f29fc6c9e1c9060200160405180910390a2505050505050506200064f565b3390565b60058054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620003a390620005fa565b90600052602060002090601f016020900481019282620003c7576000855562000412565b82601f10620003e257805160ff191683800117855562000412565b8280016001018555821562000412579182015b8281111562000412578251825591602001919060010190620003f5565b506200042092915062000424565b5090565b5b8082111562000420576000815560010162000425565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126200047c57600080fd5b81516001604060020a03808211156200049957620004996200043b565b604051601f8301601f19908116603f01168101908282118183101715620004c457620004c46200043b565b81604052838152602092508683858801011115620004e157600080fd5b600091505b83821015620005055785820183015181830184015290820190620004e6565b83821115620005175760008385830101525b9695505050505050565b600080600080600080600060e0888a0312156200053d57600080fd5b87516001604060020a03808211156200055557600080fd5b620005638b838c016200046a565b985060208a01519150808211156200057a57600080fd5b50620005898a828b016200046a565b60408a015160608b015160808c015160a08d015160c0909d01519b9e939d50919b909a919950975095509350505050565b60008219821115620005f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500190565b6002810460018216806200060f57607f821691505b60208210810362000649577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b612385806200065f6000396000f3fe608060405234801561001057600080fd5b50600436106102ca576000357c0100000000000000000000000000000000000000000000000000000000900480638005a7de11610198578063a694fc3a116100f5578063de251fb6116100a9578063f2fde38b1161008e578063f2fde38b1461057e578063f6ed0f2014610591578063fc7e286d146105a457600080fd5b8063de251fb614610563578063e072fa911461057657600080fd5b8063c4222b20116100da578063c4222b20146104f1578063d771b0a614610514578063dd62ed3e1461051d57600080fd5b8063a694fc3a146104cb578063a9059cbb146104de57600080fd5b806395d89b411161014c5780639dc29fac116101315780639dc29fac1461049c578063a457c2d7146104af578063a620e055146104c257600080fd5b806395d89b411461048b5780639c2f592b1461049357600080fd5b80638da5cb5b1161017d5780638da5cb5b14610447578063918431651461046f57806391b8144d1461048257600080fd5b80638005a7de14610435578063817b1cd21461043e57600080fd5b806333962f2311610246578063509442ee116101fa57806370a08231116101df57806370a08231146103ee578063715018a614610424578063722462001461042c57600080fd5b8063509442ee146103c857806356c7d93b146103db57600080fd5b8063395093511161022b578063395093511461038f5780633d2200df146103a257806340c10f19146103b557600080fd5b806333962f231461037d578063355274ea1461038657600080fd5b806323b872dd1161029d5780632def6620116102825780632def662014610351578063313ce5671461035b578063314a54391461036a57600080fd5b806323b872dd1461033557806327d0364d1461034857600080fd5b8063060614cb146102cf57806306fdde03146102f5578063095ea7b31461030a57806318160ddd1461032d575b600080fd5b6102e26102dd366004611f79565b6105e0565b6040519081526020015b60405180910390f35b6102fd61061f565b6040516102ec9190611f92565b61031d61031836600461202e565b6106b1565b60405190151581526020016102ec565b6002546102e2565b61031d610343366004612058565b6106c9565b6102e2600a5481565b6103596106ed565b005b604051601281526020016102ec565b610359610378366004611f79565b6108d7565b6102e2600f5481565b6102e260105481565b61031d61039d36600461202e565b61091a565b6102e26103b0366004612094565b610966565b6103596103c336600461202e565b6109a3565b6102e26103d636600461210a565b610bae565b6102e26103e9366004612094565b610bcb565b6102e26103fc366004612136565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b610359610bfc565b6102e2600e5481565b6102e2600d5481565b6102e260085481565b60055460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102ec565b61035961047d366004612136565b610c10565b6102e260095481565b6102fd610d58565b6102e2600b5481565b6103596104aa36600461202e565b610d67565b61031d6104bd36600461202e565b610e5f565b6102e260075481565b6103596104d9366004611f79565b610f30565b61031d6104ec36600461202e565b611262565b61031d6104ff366004612136565b60116020526000908152604090205460ff1681565b6102e2600c5481565b6102e261052b366004612151565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6102e261057136600461210a565b611270565b610359611280565b61035961058c366004612136565b6112c5565b61031d61059f366004612094565b61137c565b6105cb6105b2366004612136565b6012602052600090815260409020805460019091015482565b604080519283526020830191909152016102ec565b60006106196105f6670de0b6b3a7640000611394565b61061461060285611394565b61060f6301e133806113a4565b6113bc565b6113f4565b92915050565b60606003805461062e90612184565b80601f016020809104026020016040519081016040528092919081815260200182805461065a90612184565b80156106a75780601f1061067c576101008083540402835291602001916106a7565b820191906000526020600020905b81548152906001019060200180831161068a57829003601f168201915b5050505050905090565b6000336106bf81858561146c565b5060019392505050565b6000336106d7858285611620565b6106e28585856116f7565b506001949350505050565b60026006540361075e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026006553360008181526012602090815260409182902082518084019093528054835260010154908201526107939061137c565b61081f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f596f75206d757374206265207374616b696e6720696e206f7264657220746f2060448201527f756e7374616b652e0000000000000000000000000000000000000000000000006064820152608401610755565b33600090815260126020908152604091829020825180840190935280548352600101549082015261084f816119aa565b610858816119cb565b610861816119da565b61087c33600090815260126020526040812081815560010155565b33600081815260126020526040908190205490517f849f30d84105c266902866e7f3391b954ffe63198480d493f8e9bd5c60508743916108c6914290918252602082015260400190565b60405180910390a250506001600655565b6108df611a03565b60078190556040518181527fdf7624ccf5cb9f68deaae1334b4a3386b84536983a55cc957f8f4e0436cb53e69060200160405180910390a150565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906106bf9082908690610961908790612206565b61146c565b60006109718261137c565b61097d57506000919050565b600061098883610bcb565b835190915060009061099b908390611a84565b949350505050565b6109ab611a03565b806000610a43823073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381865afa158015610a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3d919061221e565b90611a90565b9050600f54811115610ad7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f546f74616c20737570706c792077696c6c20657863656564206d6178416d6f7560448201527f6e744d616e75616c6c794d696e7461626c65206166746572206d696e740000006064820152608401610755565b600260065403610b43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610755565b6002600655610b528484611a9c565b6040805184815242602082015273ffffffffffffffffffffffffffffffffffffffff8616917fd898cee1126dbd5912770c4a11cd43c6e6feb8f75d46005f89c4a641aab42aa491015b60405180910390a2505060016006555050565b600061099b84610bc6610bc0866105e0565b85611bbc565b611c35565b602081015160009081610bde4283611a84565b8451600b5491925090610bf390829084610bae565b95945050505050565b610c04611a03565b610c0e6000611c68565b565b610c18611a03565b600a5415610cce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604f60248201527f596f752063616e206f6e6c792061646420616e79206164647265737320746f2060448201527f74686973206c697374206265666f72652074686520636f6e747261637427732060648201527f696e697469616c697a6174696f6e2e0000000000000000000000000000000000608482015260a401610755565b60408051602080820183526001825273ffffffffffffffffffffffffffffffffffffffff841660008181526011909252838220925183547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690151517909255915190917f79ab386ea6f7e93c670148c75453e38af8bd9b5c2e5b2bdc6a2a65a252c4e09d91a250565b60606004805461062e90612184565b610d6f611a03565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260116020526040902054829060ff16610e00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4974206d75737420626520616e20696e7465726e616c20616464726573732e006044820152606401610755565b610e0a8383611cdf565b6040805183815242602082015273ffffffffffffffffffffffffffffffffffffffff8516917fdd9fb030a496b61de79bee028a4123d2100ce2612080af8ae374b29da0dc3bf0910160405180910390a2505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610f23576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610755565b6106e2828686840361146c565b600260065403610f9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610755565b6002600655600e5415801590610fb4575042600e5410155b611040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f546865207374616b696e6720776173206e6f742079657420616374697661746560448201527f64206f7220656e64656420616c72656164792074686520706572696f642e00006064820152608401610755565b3360008181526011602052604090205460ff16156110ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4974206d75737420626520616e2065787465726e616c20616464726573732e006044820152606401610755565b3360008181526012602090815260409182902082518084019093528054835260010154908201526110ea9061137c565b15611151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f596f7572206164647265737320697320616c7265616479207374616b696e672e6044820152606401610755565b826007548110156111e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f546f207374616b652c20796f75206d757374206861766520746865206d696e6960448201527f6d756d20616d6f756e74206f6620636f696e732072657175697265642e0000006064820152608401610755565b6111ed84611ec4565b611222846040805180820182529182524260208084019182523360009081526012909152919091209151825551600190910155565b61122b84611ecf565b6040805185815242602082015233917fe9e7f6567185d809cae6a32654e3f56646570bf70d984d92c2ae7b3e786a46da9101610b9b565b6000336106bf8185856116f7565b600061099b84610bc68585611bbc565b611288611a03565b42600a81905560405190815233907f25bb181fc3a0a01be3398d1c6c9cd4ac50e92805c924337e47f11749d7a3cbae9060200160405180910390a2565b6112cd611a03565b73ffffffffffffffffffffffffffffffffffffffff8116611370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610755565b61137981611c68565b50565b80516000901580159061061957505060200151151590565b600061061982633b9aca00611eef565b6000610619826b033b2e3c9fd0803ce8000000611eef565b6000816113e36113d8856b033b2e3c9fd0803ce8000000611eef565b610614600286612266565b6113ed9190612266565b9392505050565b6000826114018382612206565b9150811015610619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f770000000000000000000000006044820152606401610755565b73ffffffffffffffffffffffffffffffffffffffff831661150e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610755565b73ffffffffffffffffffffffffffffffffffffffff82166115b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610755565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146116f157818110156116e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610755565b6116f1848484840361146c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831661179a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610755565b73ffffffffffffffffffffffffffffffffffffffff821661183d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610755565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156118f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610755565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290611937908490612206565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161199d91815260200190565b60405180910390a36116f1565b60006119b582610966565b905080156119c7576119c73382611a9c565b5050565b611379303383600001516116f7565b80516008546119e891611a84565b600855600980549060006119fb8361227a565b919050555050565b60055473ffffffffffffffffffffffffffffffffffffffff163314610c0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610755565b60006113ed82846122af565b60006113ed8284612206565b73ffffffffffffffffffffffffffffffffffffffff8216611b19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610755565b8060026000828254611b2b9190612206565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290611b65908490612206565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000611bc96002836122c6565b600003611be2576b033b2e3c9fd0803ce8000000611be4565b825b9050611bf1600283612266565b91505b811561061957611c048384611c35565b9250611c116002836122c6565b15611c2357611c208184611c35565b90505b611c2e600283612266565b9150611bf4565b60006b033b2e3c9fd0803ce80000006113e3611c518585611eef565b61061460026b033b2e3c9fd0803ce8000000612266565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff8216611d82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610755565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015611e38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610755565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260408120838303905560028054849290611e749084906122af565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611613565b6113793330836116f7565b600854611edc9082611a90565b600855600980549060006119fb836122da565b6000811580611f1357508282611f058183612312565b9250611f119083612266565b145b610619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f770000000000000000000000006044820152606401610755565b600060208284031215611f8b57600080fd5b5035919050565b600060208083528351808285015260005b81811015611fbf57858101830151858201604001528201611fa3565b81811115611fd1576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461202957600080fd5b919050565b6000806040838503121561204157600080fd5b61204a83612005565b946020939093013593505050565b60008060006060848603121561206d57600080fd5b61207684612005565b925061208460208501612005565b9150604084013590509250925092565b6000604082840312156120a657600080fd5b6040516040810181811067ffffffffffffffff821117156120f0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052823581526020928301359281019290925250919050565b60008060006060848603121561211f57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561214857600080fd5b6113ed82612005565b6000806040838503121561216457600080fd5b61216d83612005565b915061217b60208401612005565b90509250929050565b60028104600182168061219857607f821691505b6020821081036121d1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115612219576122196121d7565b500190565b60006020828403121561223057600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261227557612275612237565b500490565b600081612289576122896121d7565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b6000828210156122c1576122c16121d7565b500390565b6000826122d5576122d5612237565b500690565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361230b5761230b6121d7565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561234a5761234a6121d7565b50029056fea2646970667358221220d974aef147a0047ec02e81c2e0a9f909d36ef75233bd28433ac3f491b750e33464736f6c634300080e003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000004304e358a805cc768f3d0000000000000000000000000000000000000000000000000000214e8348c4f00000000000000000000000000000000000000000000014adf4b8100e9ff376400000000000000000000000000000000000000000000000000000000000012cc030000000000000000000000000000000000000000000000003635c9adc5dea000000000000000000000000000000000000000000000000000000000000000000008426574566572736500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034256540000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000004304e358a805cc768f3d0000000000000000000000000000000000000000000000000000214e8348c4f00000000000000000000000000000000000000000000014adf4b8100e9ff376400000000000000000000000000000000000000000000000000000000000012cc030000000000000000000000000000000000000000000000003635c9adc5dea000000000000000000000000000000000000000000000000000000000000000000008426574566572736500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034256540000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): BetVerse
Arg [1] : symbol_ (string): BVT
Arg [2] : cap_ (uint256): 1296337810870061000000000000
Arg [3] : ratePerYearInWei_ (uint256): 150000000000000000
Arg [4] : maxAmountManuallyMintable_ (uint256): 400000001000000000000000000
Arg [5] : stakingDuration_ (uint256): 315360000
Arg [6] : minAmountToStake_ (uint256): 1000000000000000000000

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 000000000000000000000000000000000000000004304e358a805cc768f3d000
Arg [3] : 0000000000000000000000000000000000000000000000000214e8348c4f0000
Arg [4] : 0000000000000000000000000000000000000000014adf4b8100e9ff37640000
Arg [5] : 0000000000000000000000000000000000000000000000000000000012cc0300
Arg [6] : 00000000000000000000000000000000000000000000003635c9adc5dea00000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [8] : 4265745665727365000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 4256540000000000000000000000000000000000000000000000000000000000


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.