Skip to content

Commit

Permalink
redeploy fucks
Browse files Browse the repository at this point in the history
  • Loading branch information
lorbke committed Nov 17, 2024
1 parent b87658e commit 6a749d0
Show file tree
Hide file tree
Showing 14 changed files with 985 additions and 1,180 deletions.
104 changes: 104 additions & 0 deletions packages/foundry/broadcast/Deploy.s.sol/480/run-1731801509.json

Large diffs are not rendered by default.

104 changes: 104 additions & 0 deletions packages/foundry/broadcast/Deploy.s.sol/480/run-1731802914.json

Large diffs are not rendered by default.

74 changes: 37 additions & 37 deletions packages/foundry/broadcast/Deploy.s.sol/480/run-latest.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/foundry/contracts/HumanOracleV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ contract HumanOracleV1 is WorldIdRegister {
require(amount <= 5, "max staking amount is 5");
address userAddr = address(msg.sender);
stakeForAnswer(userAddr, voteId, answerIndex, amount);
vault.depositERC20(worldToken, amount, nonce, deadline, signature);
vault.depositERC20(userAddr, worldToken, amount, nonce, deadline, signature);
emit VoteSubmitted(userAddr, voteId, answerIndex, amount);
}

Expand All @@ -133,7 +133,7 @@ contract HumanOracleV1 is WorldIdRegister {
require(!hasUserClaimedForVote(userAddr, voteId), "user already claimed");
setUserHasClaimedToTrueForVote(userAddr, voteId);
uint256 payout = getStakeResolvedUserAmount(userAddr, voteId);
vault.withdrawERC20(worldToken, payout);
vault.withdrawERC20(userAddr, worldToken, payout);
emit RewardClaimed(userAddr, voteId, payout);
return payout;
}
Expand All @@ -159,7 +159,7 @@ contract HumanOracleV1 is WorldIdRegister {

createNewStake(voteId, bounty);

vault.depositERC20Regular(worldToken, bounty);
vault.depositERC20Regular(address(msg.sender), worldToken, bounty);

emit VoteCreated(voteId, getVoteQuestion(voteId), getVoteStartBlock(voteId), getVoteDurationInBlocks(voteId));
}
Expand Down
Loading

0 comments on commit 6a749d0

Please sign in to comment.