上周在我的文章里提到过,去中心化链里的通证的价值锚定在生态成熟之前是比较难度的,因而我在是思考一种代码保障的价值通证。目前阶段,要想实现价值通证,必须从EOS内部生态入手,因此我提出了一个基金币模型。
基金币采用100%的bancor模型,用户使用基金母币(一般是比较稳定的价值币,比如XEOS/EOS)购买基金币(比如VEX,投票代理基金币),基金币可随时按当前市价兑换成母币。基金币分为两类:
createfund(account_name creator, account_name fund_account, symbol_name base, symbol_name fund, uint8_t permission)
void buyfund(account_name payer, account_name receiver, account_name fund_account, asset quantity);
void sellfund(account_name account, account_name receiver, account_name fund_account, asset quantity);
void addfund(account_name account, account_name fund_account, asset quantity);
比如租赁CPU,投票获得的收益就可以通过这个接口增加基金价值
基金币的更多代码正在整理中,后续会更新,请关注https://github.com/DexChain 的更新
该项目是一个区块链4.0通证经济去中心化链的试验性探索链,遵循MIT License, 任何企业或个体可在MIT规范下使用本项目的源码。
由于该项目是一个试验性探索项目,目前该项目已经上线jungle测试网络,智能合约账号dexchaincode, 方便大家测试实践。
项目网站:https://github.com/DexChain
币乎:https://bihu.com/people/224762
电报:https://t.me/dexchain
公众号:区块链斜杠青年
欢迎交流技术及合作,有任何问题请加我微信:itleaks