提交 9861b589 编写于 作者: W wangxxzhiyy

No need to pay subsidy for ecological fund account

上级 585b7c60
...@@ -357,6 +357,9 @@ void hddpool::sellhdd(name user, int64_t amount, std::string memo) ...@@ -357,6 +357,9 @@ void hddpool::sellhdd(name user, int64_t amount, std::string memo)
token_account, N(transfer), token_account, N(transfer),
std::make_tuple(hdd_exchg_acc, user, quant, memo)) std::make_tuple(hdd_exchg_acc, user, quant, memo))
.send(); .send();
if(user.value == ecologyfound_acc.value)
return;
if(_gparmas_state.dup_remove_ratio < 40000) { if(_gparmas_state.dup_remove_ratio < 40000) {
int64_t _yta_amount2 =(int64_t)( ( (double)amount/10000) * ((double)_gparmas_state.hdd_price/(double)_gparmas_state.yta_price) * ((double)(40000-_gparmas_state.dup_remove_ratio)/10000) * ((double)_gparmas_state.dup_remove_dist_ratio/10000) ); int64_t _yta_amount2 =(int64_t)( ( (double)amount/10000) * ((double)_gparmas_state.hdd_price/(double)_gparmas_state.yta_price) * ((double)(40000-_gparmas_state.dup_remove_ratio)/10000) * ((double)_gparmas_state.dup_remove_dist_ratio/10000) );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册