mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
getId removed
This commit is contained in:
parent
04168fa574
commit
472ddf20ab
|
@ -6,7 +6,6 @@ contract Events {
|
|||
address user,
|
||||
address token,
|
||||
uint256 amt,
|
||||
uint256 getId,
|
||||
uint256 setId
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user