-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: keep3r sponsor #27
base: dev
Are you sure you want to change the base?
Conversation
…e into keep3rSponsor
address(keep3rHelper), abi.encodeWithSelector(IKeep3rHelper.getRewardAmountFor.selector), abi.encode(_reward) | ||
); | ||
|
||
uint256 rewardWithBonus = (_reward * keep3rSponsor.bonus()) / keep3rSponsor.BASE(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
||
/// @inheritdoc IKeep3rSponsor | ||
function setBonus(uint256 _bonus) external onlyOwner { | ||
bonus = _bonus; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a check. Can't be lower than 10_000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
if (!_isKeeper) revert Keep3rSponsor_NotKeeper(); | ||
uint256 _initialGas = gasleft(); | ||
|
||
for (uint256 _i; _i < _execData.length;) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move this up a line so we don't include this check as payment for the keeper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
import {IKeep3rV2} from '../../interfaces/external/IKeep3rV2.sol'; | ||
import {IKeep3rHelper} from '../../interfaces/external/IKeep3rHelper.sol'; | ||
import {IKeep3rV1} from '../../interfaces/external/IKeep3rV1.sol'; | ||
import {IKeep3rBondedRelay} from '../../interfaces/relays/IKeep3rBondedRelay.sol'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter
No description provided.