mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Minor reward connector updates
This commit is contained in:
parent
92c47b993d
commit
7f5044222e
|
@ -16,7 +16,7 @@ contract Events {
|
||||||
uint256 setId
|
uint256 setId
|
||||||
);
|
);
|
||||||
|
|
||||||
event LogClaimedAaveV3(
|
event LogClaimedMorphoAaveV3(
|
||||||
address[] poolTokenAddresses,
|
address[] poolTokenAddresses,
|
||||||
address onBehalf,
|
address onBehalf,
|
||||||
address[] rewardTokens,
|
address[] rewardTokens,
|
||||||
|
|
|
@ -11,9 +11,9 @@ abstract contract Helpers is Basic {
|
||||||
IMorphoCore public constant MORPHO_AAVE =
|
IMorphoCore public constant MORPHO_AAVE =
|
||||||
IMorphoCore(0x777777c9898D384F785Ee44Acfe945efDFf5f3E0);
|
IMorphoCore(0x777777c9898D384F785Ee44Acfe945efDFf5f3E0);
|
||||||
|
|
||||||
IMorphoCoreV3 public constant MORPHO_AAVE_V3 =
|
|
||||||
IMorphoCoreV3(0x33333aea097c193e66081E930c33020272b33333);
|
|
||||||
|
|
||||||
IMorphoRewardsDistributor public constant MORPHO_REWARDS =
|
IMorphoRewardsDistributor public constant MORPHO_REWARDS =
|
||||||
IMorphoRewardsDistributor(0x3B14E5C73e0A56D607A8688098326fD4b4292135);
|
IMorphoRewardsDistributor(0x3B14E5C73e0A56D607A8688098326fD4b4292135);
|
||||||
|
|
||||||
|
IMorphoCoreV3 public constant MORPHO_AAVE_V3 =
|
||||||
|
IMorphoCoreV3(0x33333aea097c193e66081E930c33020272b33333);
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ abstract contract MorphoRewards is Helpers, Events {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Claim Underlying Pool Rewards.
|
* @dev Claims rewards for the given assets from Morpho Aave V3.
|
||||||
* @notice Claims rewards for the given assets.
|
* @notice Claims rewards for the given assets.
|
||||||
* @param _poolTokenAddresses The assets to claim rewards from (aToken or variable debt token).
|
* @param _poolTokenAddresses The assets to claim rewards from (aToken or variable debt token).
|
||||||
* @param _onBehalf The address for which rewards are claimed and sent to.
|
* @param _onBehalf The address for which rewards are claimed and sent to.
|
||||||
|
@ -120,9 +120,7 @@ abstract contract MorphoRewards is Helpers, Events {
|
||||||
_onBehalf
|
_onBehalf
|
||||||
);
|
);
|
||||||
|
|
||||||
// setUint(_setId, _amountOfRewards);
|
_eventName = "LogClaimedMorphoAaveV3(address[],address,address[],uint256[])";
|
||||||
|
|
||||||
_eventName = "LogClaimedAaveV3(address[],address,address[],uint256[])";
|
|
||||||
_eventParam = abi.encode(
|
_eventParam = abi.encode(
|
||||||
_poolTokenAddresses,
|
_poolTokenAddresses,
|
||||||
_onBehalf,
|
_onBehalf,
|
||||||
|
@ -133,5 +131,5 @@ abstract contract MorphoRewards is Helpers, Events {
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2MorphoRewards is MorphoRewards {
|
contract ConnectV2MorphoRewards is MorphoRewards {
|
||||||
string public constant name = "Morpho-Rewards-v1.0";
|
string public constant name = "Morpho-Rewards-v1.1";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user