iVipCoin (IVIP)
  • iVipCoin, the token of the future.
  • Platform
    • Summary
    • Theme - Overview
      • Themes
      • Log in / Sig up
      • Main DashBoard
    • Theme - Cryptocurrency
      • DashBoard
      • Ranking
      • Chat
      • Rooms
      • Events
      • Knowledge Tree
      • Forest
      • Tests
      • Multiplayer
      • Certifications
      • Demo Room
      • Scanning Room
      • Rents
      • Comparing Tool
      • Achievements
      • Giveaways
      • Profile
      • iViPay
        • Conversion
        • Wallet
        • Credit
      • Quick Swap
      • Advanced Trading
      • Copytrade Room
      • Performance Management
      • Live Economy
      • Small Windows
        • Operating Mode
        • Notifications
        • Exchanges Connection
        • Tasks
  • Utility
    • Summary
    • Economy
    • iViPay
    • BlockChain iViPay
    • Invest to access
    • Learn to Earn
    • Stable Reduction
    • Quota rental
    • Trade to Earn
    • Profit Reflection
    • Chat
    • Teaching
    • PvP
    • Plans
    • Voting
    • Nursery
    • Exchange connections
    • NFTs
    • Raffles
    • Performance Management
  • Ecosystem
    • Distribution
    • Main Public Wallets
    • Monthly Burns
    • Pre-sale
  • DEX liquidity
    • Locked UniCrypto Liquidity
    • Dex Liquidity
  • Contract at binance smart chain (bep20)
    • Summary
    • BEP20 Code
    • BEP20 Contract Functions
  • General Info
    • Roadmap
    • Social
  • iVip Team
    • iVip team
    • Partnerships
    • Desktop Platform- Language
      • Widgets
Powered by GitBook
On this page
  • Used variables
  • Burn address
  • Mined supply and maximum supply
  • Current owner
  • Token name
  • Decimals
  • Token symbol
  • Total supply
  • Circulating supply
  • Burnt amount
  • Mined supply
  • Total supply
  • Wallet balance
  • Transfer function
  • Programmed minting
  • Minting start
  • Minting function
  1. Contract at binance smart chain (bep20)

BEP20 Contract Functions

Solve all your doubs about the iVip Token

PreviousBEP20 CodeNextRoadmap

Last updated 2 years ago

Used variables

address public _previousOwner;
uint256 public _locktime;
uint256 public _nownow;
uint256 private _amountt;
uint256 public amountMint;

Burn address

address _addressburn = 0x000000000000000000000000000000000000dEaD;

Mined supply and maximum supply

 uint256 private constant _preMineSupply = 11999999998 * (10 ** 5); // 12 billions (60% supply)
 uint256 private constant _maxSupply = 20000000000 * (10 ** 5); // 20 billions max. supply (100% supply)

Current owner

function getOwner() external override view returns (address) {
        return owner();
    }

Token name

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

Decimals

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

Token symbol

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

Total supply

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

Circulating supply

function circulatingSupply() public view returns (uint256) 
{
        return _totalSupply.sub(balanceOf(_addressburn));
}

Burnt amount

function burn() public view returns (uint256) {
        return balanceOf(_addressburn)/100000;
    }

Mined supply

function preMineSupply() public override view returns (uint256) {
        return _preMineSupply;
    }

Total supply

function maxSupply() public override view returns (uint256) {
        return _maxSupply;
    }

Wallet balance

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

Transfer function

function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

Programmed minting

function minttocome(uint256 time, uint256 amount) public virtual onlyOwner {
        _previousOwner = _msgSender();
        _amountt = amount * (10 ** 5);
        require(_amountt <= (_maxSupply / 5));
        require(time >= 7);
        _locktime = now + (time * 86400);
        _nownow = now;
        amountMint = amount;
    }

Minting start

function mintnow() public virtual onlyOwner returns (bool) {
require(now > _locktime , "mint Now");
require(_previousOwner == _msgSender(), "You don't have permission to unlock");
_mint(_msgSender(), _amountt);
return true;
   }

Minting function

function _mint(address account, uint256 amount) internal returns(bool) {
        require(account != address(0), 'BEP20: mint to the zero address');
        if (amount.add(_totalSupply) > _maxSupply) {
            return false;
        }

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
        _locktime = now + now;
        amountMint = 0;
    }
Click here to access BSCscan page
Page cover image