Skip to content

Commit

Permalink
upgrade contarct
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran committed Jan 21, 2025
1 parent bacfcaf commit 8e851c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions smartcontracts/contracts/W3bstreamTaskManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ contract W3bstreamTaskManager is OwnableUpgradeable, ITaskManager {
require(rebateRatio <= 10000, "invalid rebate ratio");
require(!projectReward.isPaused(projectId), "project paused");
//address taskOwner = hash.recover(signature);
//uint256 rewardAmount = projectReward.rewardAmount(taskOwner, projectId);
//address rewardToken = projectReward.rewardToken(projectId);
//if (rewardToken != address(0) && rewardAmount > 0) {
// debits.withhold(rewardToken, taskOwner, rewardAmount);
//}
// uint256 rewardAmount = projectReward.rewardAmount(taskOwner, projectId);
// address rewardToken = projectReward.rewardToken(projectId);
// if (rewardToken != address(0) && rewardAmount > 0) {
// debits.withhold(rewardToken, taskOwner, rewardAmount);
// }
Record storage record = records[projectId][taskId];
require(record.settled == false, "task already settled");
if (record.prover != address(0)) {
Expand Down

0 comments on commit 8e851c0

Please sign in to comment.