diff --git a/webapp/models/Staking.php b/webapp/models/Staking.php index cae758ba..edec6568 100644 --- a/webapp/models/Staking.php +++ b/webapp/models/Staking.php @@ -2,6 +2,8 @@ namespace models; +require_once("mt/Stacking.php"); + class Staking extends BaseModel { const STAKING_STATUS = 0; @@ -152,4 +154,13 @@ class Staking extends BaseModel { } } + public static function calcReward($row, &$reward) + { + $stakingMeta = mt\Staking::get($row['item_id']); + if (!$stakingMeta) { + return false; + } + return true; + } + }