This commit is contained in:
aozhiwei 2024-01-29 16:46:57 +08:00
parent 2c1f98ad82
commit 2f75aa1e1d

View File

@ -272,6 +272,7 @@ class Staking extends BaseModel {
if ($stakedDays >= $saveDays) {
$rate = 1;
}
$rate = 1;
if ($saveDays >= 30 * 12 * 2) {
$stakedDays = max($stakedDays, 0);
$dto['cec_rewards'] = ($dto['cec_value'] * (0.6 / 30 / 12)) * min(30 * 12, $stakedDays) * $rate;