Skip to content

Commit

Permalink
feat: add releaseUnutilizedResponse to the response module
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Dec 15, 2023
1 parent 49fc8fa commit 59f47a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions solidity/interfaces/modules/response/IResponseModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ interface IResponseModule is IModule {
* @param _sender The creator of the response
*/
function propose(IOracle.Request calldata _request, IOracle.Response calldata _response, address _sender) external;

/**
* @notice Refunds the proposer and revert
*
* @param _request The request
* @param _response The unutilized response
*/
function releaseUnutilizedResponse(IOracle.Request calldata _request, IOracle.Response calldata _response) external;
}

0 comments on commit 59f47a3

Please sign in to comment.