1
This commit is contained in:
parent
0b55409cc6
commit
77259bd1ec
@ -215,6 +215,13 @@ class Staking extends BaseModel {
|
||||
$dto['stacked_days'] = max(0, $passedDays);
|
||||
$dto['remain_days'] = max(0, $saveDays - $dto['stacked_days']);
|
||||
$dailyInterest = self::getDailyInterest($row['stake_time'], $dto['remain_days']);
|
||||
if ($saveDays >= 30 * 12 * 2) {
|
||||
if ($dto['remain_days'] < 30 * 12) {
|
||||
$dailyInterest *= 0.6;
|
||||
} else {
|
||||
$dailyInterest *= 0.4;
|
||||
}
|
||||
}
|
||||
$dto['daily_rewards'] = $dto['cec_value'] * $dailyInterest;
|
||||
/*
|
||||
error_log(json_encode(array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user