DAPP代幣合約做市流動性質押挖礦分紅系統開發技術詳細及程式碼部署
區塊鏈技術概括起來是指透過去中心化和去信任的方式集體維護一個可靠資料庫的技術。
In fact,blockchain technology is not a single and new technology,but the result of the integration of many existing technologies.These technologies and databases are ingeniously combined to form a new way of data recording,transmission,storage and presentation
//Contract to sell and distribute VEN tokens
contract VENSale is Owned{
///chart of stage transition
///
///deploy initialize startTime endTime finalize
///|<-earlyStageLasts->||<-closedStageLasts->|
///Created Initialized Early Normal Closed Finalized
enum Stage{
NotCreated,
Created,
Initialized,
Early,
Normal,
Closed,
Finalized
}
using SafeMath for uint256;
uint256 public constant totalSupply=(10**9)*(10**18);//1 billion VEN,decimals set to 18
uint256 constant privateSupply=totalSupply*9/100;//9%for private ICO
uint256 constant commercialPlan=totalSupply*23/100;//23%for commercial plan
uint256 constant reservedForTeam=totalSupply*5/100;//5%for team
uint256 constant reservedForOperations=totalSupply*22/100;//22 for operations
//59%
uint256 public constant nonPublicSupply=privateSupply+commercialPlan+reservedForTeam+reservedForOperations;
//41%
uint256 public constant publicSupply=totalSupply-nonPublicSupply;
uint256 public constant officialLimit=64371825*(10**18);
uint256 public constant channelsLimit=publicSupply-officialLimit;
//packed to 256bit
struct SoldOut{流程及詳情:MrsFu123
uint16 placeholder;//placeholder to make struct pre-alloced
//amount of tokens officially sold out.
//max value of 120bit is about 1e36,it's enough for token amount
uint120 official;
uint120 channels;//amount of tokens sold out via channels
}
SoldOut soldOut;
uint256 constant venPerEth=3500;//normal exchange rate
uint256 constant venPerEthEarlyStage=venPerEth+venPerEth*15/100;//early stage has 15%reward
uint constant minBuyInterval=30 minutes;//each account can buy once in 30 minutes
uint constant maxBuyEthAmount=30 ether;
VEN ven;//VEN token contract follows ERC20 standard
address ethVault;//the account to keep received ether
address venVault;//the account to keep non-public offered VEN tokens
uint public constant startTime=1503057600;//time to start sale
uint public constant endTime=1504180800;//tiem to close sale
uint public constant earlyStageLasts=3 days;//early bird stage lasts in seconds
bool initialized;
bool finalized;
function VENSale(){
soldOut.placeholder=1;
}
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69956839/viewspace-2939008/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 合約代幣流動性質押挖礦開發(節點做市)丨合約代幣流動性質押挖礦系統開發詳細
- DAPP/LP代幣合約流動性質押挖礦分紅系統開發(規則及詳細)原始碼部署APP原始碼
- 代幣智慧合約質押流動性挖礦分紅開發丨代幣智慧合約質押流動性挖礦分紅系統開發
- DAPP智慧合約代幣質押流動性挖礦分紅系統開發原始碼丨(詳細及案例)APP原始碼
- DAPP代幣合約質押流動性挖礦分紅系統開發實現技術方案及程式碼分析APP
- DAPP丨LP代幣合約流動性質押挖礦分紅系統開發(開發需求及案例)APP
- 代幣合約流動性質押挖礦開發原始碼版丨代幣合約流動性質押挖礦系統開發(成熟方案)原始碼
- 深入分析智慧合約DAPP代幣合約流動性質押挖礦分紅系統開發(案例開發及原始碼)APP原始碼
- 代幣合約LP質押流動性挖礦系統開發(技術分析)
- DAO代幣流動性質押挖礦分紅系統開發(開發詳細)及邏輯原始碼原始碼
- DAPP智慧合約LP流動性質押挖礦分紅系統開發詳細及功能丨原始碼案例APP原始碼
- LP流動性做市質押分紅挖礦dapp系統開發合約底層邏輯APP
- 代幣智慧合約流動性質押挖礦開發穩定版丨代幣智慧合約流動性質押挖礦系統開發方案
- DAPP智慧合約代幣流動性挖礦系統開發(技術細節)APP
- IDO/DAPP代幣合約質押挖礦分紅系統開發(詳情方案)APP
- dapp/lp/defi代幣合約質押挖礦分紅系統開發詳細及規則丨原始碼案例APP原始碼
- 單雙幣/字母幣流動性質押挖礦分紅系統開發詳細及方案
- Solidity語言/LP/DAPP合約代幣質押流動性挖礦系統技術開發詳情SolidAPP
- DAPP智慧合約理財質押挖礦分紅系統開發詳細需求及原始碼部署APP原始碼
- BSC鏈代幣合約質押挖礦分紅模式系統開發詳情丨 DApp 技術棧模式APP
- dapp/defi流動性lp代幣質押挖礦系統開發技術詳細丨原始碼案例APP原始碼
- DAPP代幣預售質押挖礦分紅系統詳情開發技術APP
- dao代幣質押流動性挖礦開發正式版丨dao代幣質押流動性挖礦系統開發案例詳細及原始碼原始碼
- DAPP合約代幣流動性挖礦系統開發技術原理APP
- BNB鏈合約代幣預售質押流動性挖礦系統技術開發詳情
- DAPP智慧合約單雙幣(子母幣)流動性質押挖礦系統開發技術APP
- Matic馬蹄鏈DAPP智慧合約流動性質押挖礦系統開發詳細技術及原始碼APP原始碼
- DAO質押分紅智慧合約流動性挖礦系統開發
- dapp/defi智慧合約流動性LP質押挖礦分紅系統開發(開發程式)及方案原始碼APP原始碼
- DAPP丨LP雙幣質押流動性挖礦分紅系統開發(開發詳細及方案)原始碼案例APP原始碼
- DAPP/Defi代幣預售質押挖礦分紅系統技術開發程式APP
- Defi/DAPP/LP代幣流動性質押挖礦系統開發(技術元件)APP元件
- BSC鏈質押代幣流動性挖礦系統開發|DAPP技術框架APP框架
- Defi/LP/DAPP代幣合約流動性質押挖礦系統開發/Solidity合約示例APPSolid
- defi合約流動性質押挖礦DAPP系統合約開發案例(技術分析)APP
- DAPP質押挖礦分紅系統開發|DAPP合約APP
- dapp/defi智慧合約流動性LP質押挖礦分紅系統開發方案原始碼APP原始碼
- DAPP/Defi代幣智慧合約質押挖礦系統技術開發原理APP