1
This commit is contained in:
parent
7eac65b4ed
commit
9490ed4632
@ -16,6 +16,7 @@ class Staking(object):
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['pool_size', '', '池子数量'],
|
||||
['total_staking_value', '', '质押总ceg价值,包含利息'],
|
||||
['daily_staking_value', '', '当天总ceg价值,包含利息'],
|
||||
['planet', _common.Staking(), '星球质押'],
|
||||
|
@ -57,8 +57,8 @@ class Staking extends BaseModel {
|
||||
foreach ($rows as $row) {
|
||||
$stakingDto = self::toDto($row);
|
||||
if ($stakingDto['status'] == self::STAKING_STATUS) {
|
||||
if ($stakingDto['remain_days'] <= 0) {
|
||||
$totalValue += $stakingDto['ceg_value'];
|
||||
if ($stakingDto['remain_days'] > 0) {
|
||||
$totalValue += $stakingDto['cec_value'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user