1
This commit is contained in:
parent
d36d23a7a2
commit
978ddb6502
@ -132,7 +132,7 @@ class RewardsCec extends BaseModel
|
|||||||
$target = min($totalNum / $hashMeta['target'] , 1); // 25.9/10000
|
$target = min($totalNum / $hashMeta['target'] , 1); // 25.9/10000
|
||||||
$ratio = $ownerNum/$totalNum; // 13.7/25.9
|
$ratio = $ownerNum/$totalNum; // 13.7/25.9
|
||||||
$cecNum = $hashMeta['cec_pool'] * $target * $ratio; //10000*(25.9/10000)*(13.7/25.9)
|
$cecNum = $hashMeta['cec_pool'] * $target * $ratio; //10000*(25.9/10000)*(13.7/25.9)
|
||||||
$address = User::findByAddress($account);
|
$address = User::findUserAddress($account);
|
||||||
SqlHelper::upsert(
|
SqlHelper::upsert(
|
||||||
myself()->_getMysql($account),
|
myself()->_getMysql($account),
|
||||||
't_hash_rate_reward',
|
't_hash_rate_reward',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user