-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from api3dao/optimistic-oev
Optimistic payOevBid
- Loading branch information
Showing
6 changed files
with
72 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...s/api3-contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionPayOevBidCallback.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
/// @title Callback for IApi3ServerV1OevExtension#payOevBid | ||
/// @notice Any contract that calls IApi3ServerV1OevExtension#payOevBid must implement this interface | ||
interface IApi3ServerV1OevExtensionPayOevBidCallback { | ||
/// @notice Called to `msg.sender` after granting the privilege to execute updates for the dApp from IApi3ServerV1OevExtension#payOevBid. | ||
/// @dev In the implementation you must repay the server the tokens owed for the payment of the OEV bid. | ||
/// The implementation is responsible to check that the caller of this method is the correct Api3ServerV1OevExtension. | ||
/// @param amountOwed The amount of tokens owed to the server for the payment of the OEV bid | ||
/// @param data Any data passed through by the caller via the IApi3ServerV1OevExtension#payOevBid call | ||
function api3ServerV1OevExtensionPayOevBidCallback( | ||
uint256 amountOwed, | ||
bytes calldata data | ||
) external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters