This commit is contained in:
hujiabin 2023-09-05 13:58:38 +08:00
parent d36d23a7a2
commit 978ddb6502

View File

@ -132,7 +132,7 @@ class RewardsCec extends BaseModel
$target = min($totalNum / $hashMeta['target'] , 1); // 25.9/10000
$ratio = $ownerNum/$totalNum; // 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(
myself()->_getMysql($account),
't_hash_rate_reward',