mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Added setId for claimMorpho
This commit is contained in:
parent
671bf7a714
commit
fbb2c3a876
|
@ -6,7 +6,8 @@ contract Events {
|
||||||
event LogClaimedMorpho(
|
event LogClaimedMorpho(
|
||||||
address account,
|
address account,
|
||||||
uint256 claimable,
|
uint256 claimable,
|
||||||
bytes32[] proof
|
bytes32[] proof,
|
||||||
|
uint256 setId
|
||||||
);
|
);
|
||||||
|
|
||||||
event LogClaimedAave(
|
event LogClaimedAave(
|
||||||
|
|
|
@ -17,7 +17,12 @@ abstract contract MorphoRewards is Helpers, Events {
|
||||||
* @param _claimable The overall claimable amount of token rewards.
|
* @param _claimable The overall claimable amount of token rewards.
|
||||||
* @param _proof The merkle proof that validates this claim.
|
* @param _proof The merkle proof that validates this claim.
|
||||||
*/
|
*/
|
||||||
function claimMorpho(address _account, uint256 _claimable, bytes32[] calldata _proof)
|
function claimMorpho(
|
||||||
|
address _account,
|
||||||
|
uint256 _claimable,
|
||||||
|
bytes32[] calldata _proof,
|
||||||
|
uint256 _setId
|
||||||
|
)
|
||||||
external
|
external
|
||||||
payable
|
payable
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
|
@ -26,8 +31,10 @@ abstract contract MorphoRewards is Helpers, Events {
|
||||||
|
|
||||||
MORPHO_REWARDS.claim(_account, _claimable, _proof);
|
MORPHO_REWARDS.claim(_account, _claimable, _proof);
|
||||||
|
|
||||||
_eventName = "LogClaimedMorpho(address,uint256,bytes32[])";
|
setUint(_setId, _claimable);
|
||||||
_eventParam = abi.encode(_account, _claimable, _proof);
|
|
||||||
|
_eventName = "LogClaimedMorpho(address,uint256,bytes32[],uint256)";
|
||||||
|
_eventParam = abi.encode(_account, _claimable, _proof, _setId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -95,6 +102,6 @@ abstract contract MorphoRewards is Helpers, Events {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2MorphoCompound is MorphoRewards {
|
contract ConnectV2MorphoRewards is MorphoRewards {
|
||||||
string public constant name = "Morpho-Rewards-v1.0";
|
string public constant name = "Morpho-Rewards-v1.0";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user