getId removed

This commit is contained in:
Shriya Tyagi 2022-08-01 00:58:41 +04:00
parent 04168fa574
commit 472ddf20ab
2 changed files with 3 additions and 8 deletions

View File

@ -6,7 +6,6 @@ contract Events {
address user,
address token,
uint256 amt,
uint256 getId,
uint256 setId
);
}

View File

@ -17,7 +17,6 @@ contract EulerIncentives is Helpers, Events {
* @param token Address of token being claimed (ie EUL)
* @param amt The amount of reward to claim.
* @param proof Merkle proof that validates this claim.
* @param getId ID to retrieve amt.
* @param setId ID stores the amount of rewards claimed.
*/
function claim(
@ -25,19 +24,16 @@ contract EulerIncentives is Helpers, Events {
address token,
uint256 amt,
bytes32[] memory proof,
uint256 getId,
uint256 setId
) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt);
require(proof.length > 0, "proofs-empty");
eulerDistribute.claim(user, token, _amt, proof, address(0));
eulerDistribute.claim(user, token, amt, proof, address(0));
setUint(setId, _amt);
setUint(setId, amt);
_eventName = "LogClaimed(address,address,uint256,uint256,uint256)";
_eventParam = abi.encode(user, token, _amt, getId, setId);
_eventParam = abi.encode(user, token, amt, setId);
}
}