Skip to content

Commit

Permalink
[modify] fix with pendingreward
Browse files Browse the repository at this point in the history
  • Loading branch information
nsnull0 committed Feb 22, 2024
1 parent 6791f41 commit 0e95250
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/PasspostFinance-NFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ contract YCBPassportFinance is
_pendingReward = maxFactor;
}

if (_pendingReward == 0) {
_pendingReward = pendingRewardStakes[tokenId];
}

return _pendingReward;
}
}
Expand Down Expand Up @@ -305,6 +309,9 @@ contract YCBPassportFinance is
_pendingReward = maxFactor;
}
}
if (_pendingReward == 0) {
_pendingReward = pendingRewardStakes[tokenId];
}
return _pendingReward;
}

Expand Down

0 comments on commit 0e95250

Please sign in to comment.