getpending reward by token address

This commit is contained in:
mingda
2021-03-26 14:41:52 +08:00
committed by owen05
parent 5a99cf603d
commit efdf2fe7c0

View File

@@ -62,6 +62,10 @@ contract BaseMine is InitializableOwnable {
).add(rt.userRewards[user]);
}
function getPendingReward(address user, address rewardToken) public view returns (uint256) {
return getPendingReward(user, getIdByRewardToken(rewardToken));
}
function totalSupply() public view returns (uint256) {
return _totalSupply;
}