diff --git a/solidity/contracts/ECDSARewardsEscrowBeneficiary.sol b/solidity/contracts/ECDSARewardsEscrowBeneficiary.sol new file mode 100644 index 000000000..73d386ff3 --- /dev/null +++ b/solidity/contracts/ECDSARewardsEscrowBeneficiary.sol @@ -0,0 +1,23 @@ +pragma solidity 0.5.17; + +import "@keep-network/keep-core/contracts/PhasedEscrow.sol"; + +/// @title ECDSARewardsEscrowBeneficiary +/// @notice Transfer the received tokens from PhasedEscrow to a designated +/// ECDSARewards contract. +contract ECDSARewardsEscrowBeneficiary is StakerRewardsBeneficiary { + constructor(IERC20 _token, IStakerRewards _stakerRewards) + public + StakerRewardsBeneficiary(_token, _stakerRewards) + {} +} + +/// @title ECDSABackportRewardsEscrowBeneficiary +/// @notice Trasfer the received tokens from Phased Escrow to a designated +/// ECDSABackportRewards contract. +contract ECDSABackportRewardsEscrowBeneficiary is StakerRewardsBeneficiary { + constructor(IERC20 _token, IStakerRewards _stakerRewards) + public + StakerRewardsBeneficiary(_token, _stakerRewards) + {} +} diff --git a/solidity/package-lock.json b/solidity/package-lock.json index 159ee9c4b..78d451591 100644 --- a/solidity/package-lock.json +++ b/solidity/package-lock.json @@ -942,9 +942,9 @@ } }, "@keep-network/keep-core": { - "version": "1.3.1-pre.4", - "resolved": "https://registry.npmjs.org/@keep-network/keep-core/-/keep-core-1.3.1-pre.4.tgz", - "integrity": "sha512-WrRhbDVlXd7m1HkSm9hzjKRgOj7ZEGZ/b8bTewD+LU2rh0dfxdG5gijzp2T3pyFZ+ofDZ/E7GjbIgVfYc/sYzw==", + "version": "1.3.1-pre.5", + "resolved": "https://registry.npmjs.org/@keep-network/keep-core/-/keep-core-1.3.1-pre.5.tgz", + "integrity": "sha512-zV1LyfWZeMS2tnLRKyL8UFCTD2MnvK92ta+U+iAz3QPqIE20MI+33hkKFMFVJxI7zIQJqNJj18eEUR8m4fG9Iw==", "requires": { "@openzeppelin/upgrades": "^2.7.2", "openzeppelin-solidity": "2.4.0"