1
This commit is contained in:
parent
e2c9db5c2d
commit
90ea3998cf
@ -220,13 +220,17 @@ class Staking extends BaseModel {
|
||||
'remain_days' => max(0, $saveDays - $dto['stacked_days']),
|
||||
'daily_rewards' => $dto['daily_rewards'],
|
||||
'daily_interest' => $dailyInterest
|
||||
)));*/
|
||||
if ($dto['remain_days'] <= 0 ) {
|
||||
$dto['cec_rewards'] = $dto['daily_rewards'] * $saveDays;
|
||||
)));
|
||||
*/
|
||||
$dto['cec_rewards'] = 0;
|
||||
$dto['total_rewards'] = 0;
|
||||
if ($dto['status'] == self::REDEEM_STATUS) {
|
||||
} else {
|
||||
$dto['cec_rewards'] = 0;
|
||||
if ($dto['remain_days'] <= 0 ) {
|
||||
$dto['cec_rewards'] = $dto['daily_rewards'] * $saveDays;
|
||||
}
|
||||
$dto['total_rewards'] = $dto['daily_rewards'] * ($saveDays - $dto['remain_days']);
|
||||
}
|
||||
$dto['total_rewards'] = $dto['daily_rewards'] * ($saveDays - $dto['remain_days']);
|
||||
return $dto;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user