Skip to content

CallistoEnterprise/LiveDiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiveDiff

Deployed contracts

LiveDIFF token

Multisig wallets

  1. Platform rewards 0xaAB2f1727703c227a47539820213839787F1aA45
  2. Airdrop 0xb6C5977fD3380936b133ee5FaFbB3D38A6Dd358f
  3. Liquidity Providers (3rd party) 0x09cc8fFbe632b4261DB345e99C8472CC4FE69126
  4. Marketing 0xfb206601581eF6Ef900C4D88695A2A5D98D57363
  5. Team (owner of ICO, Vesting, Token contracts) 0x5e0B6b0cC0c037FbE6E774624e1adf01c9CDE3D3
  6. Development fund 0x589Bc41Eb9E8bF7bf26103B0390bd1F25a2a6c78
  7. Dex liquidity 0xD320CA2C33ffD00ce1A1e41055adefD658292561

Vesting contract

ICO contract

Virtual USD

UI to buy tokens using Virtual USD

Vesting contract functions to use in UI

View function getUnlockedAmount

    function getUnlockedAmount(address beneficiary) public view returns(uint256 unlockedAmount, uint256 lockedAmount, uint256 nextUnlock);

Returns amount of tokens that user (beneficiary) can claim. Show this amount in UI.

claim and claimBehalf

    // claim unlocked tokens by msg.sender
    function claim() external;

    // claim unlocked tokens behalf beneficiary
    function claimBehalf(address beneficiary) public;

This function claims unlocked tokens for user.

ICO contract functions to use in UI

View functions getRound and getCurrentRound()

    // return info about arbitrary round
    function rounds(uint256 roundId) external view returns(Round memory round); 
    // return info about current round
    function getCurrentRound() external view returns(Round memory r);

    struct Round {
        uint256 amount;     // amount of tokens to sell in this round
        uint128 price;      // price per token (in payTokens value)
        uint128 roundStarts; // timestamp when round starts
        uint256 totalSold;  // amount of tokens sold 
        uint256 totalReceived;  // total payments received in round
    }

Returns Round structure for specific or current ICO round. If current round is finished, but the next round is not started yet the function returns Round structure for the next round. If no round is available the Round structure will be empty.

View function currentRound

    function currentRound() external view returns(uint256 currentRound);

Returns current roundId (zero-based round number);

buyToken

    function buyToken(uint256 amount) external payable;

Allow users to buy tokens from ICO. The amount parameter is an amount that user wants to buy.

  • user should approve tokens for ICO contract before call function buyToken.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published