diff --git a/webapp/controller/StakingController.class.php b/webapp/controller/StakingController.class.php index 3c5bf8ca..696f454d 100644 --- a/webapp/controller/StakingController.class.php +++ b/webapp/controller/StakingController.class.php @@ -1,6 +1,6 @@ _getAddress()); + foreach ($rows as $row) { + $stakingDto = self::toDto($row); + if ($stakingDto['status'] == Stacking::STAKING_STATUS) { + if ($stakingDto['remain_days'] <= 0) { + $totalValue += $stakingDto['ceg_value']; + } + } + } + return $totalValue; + } + public static function staked721($data, $netId) { foreach ($data['infos'] as $info) {