Skip to content

Commit

Permalink
Revert Chainlink changes as they are yet only for base
Browse files Browse the repository at this point in the history
This reverts commit c9cf454.
  • Loading branch information
otsalex committed Nov 14, 2024
1 parent c9cf454 commit 46afe75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions src/base/ERC4626SharePriceOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,16 @@ contract ERC4626SharePriceOracle is AutomationCompatibleInterface {
IRegistrar registrar = IRegistrar(automationRegistrar);
IRegistry registry = IRegistry(automationRegistry);
IRegistrar.RegistrationParams memory params = IRegistrar.RegistrationParams({
name: string.concat(target.name(), " Share Price Oracle"),
encryptedEmail: hex"",
upkeepContract: address(this),
amount: initialUpkeepFunds,
adminAddress: automationAdmin,
gasLimit: UPKEEP_GAS_LIMIT,
adminAddress: automationAdmin,
triggerType: 0,
billingToken: address(link),
name: string.concat(target.name(), " Share Price Oracle"),
encryptedEmail: hex"",
checkData: hex"",
triggerConfig: hex"",
offchainConfig: hex""
offchainConfig: hex"",
amount: initialUpkeepFunds
});

link.safeApprove(automationRegistrar, initialUpkeepFunds);
Expand Down
11 changes: 5 additions & 6 deletions src/interfaces/external/Chainlink/IRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ pragma solidity 0.8.21;

interface IRegistrar {
struct RegistrationParams {
string name;
bytes encryptedEmail;
address upkeepContract;
uint96 amount;
address adminAddress;
uint32 gasLimit;
address adminAddress;
uint8 triggerType;
address billingToken;
string name;
bytes encryptedEmail;
bytes checkData;
bytes triggerConfig;
bytes offchainConfig;
uint96 amount;
}

enum AutoApproveType {
Expand All @@ -22,7 +21,7 @@ interface IRegistrar {
ENABLED_ALL
}

function registerUpkeep(RegistrationParams calldata requestParams) external payable returns (uint256 id);
function registerUpkeep(RegistrationParams calldata requestParams) external returns (uint256 id);

function setTriggerConfig(
uint8 triggerType,
Expand Down

0 comments on commit 46afe75

Please sign in to comment.