Skip to content

Commit

Permalink
chore: declare WPF to emit IWitnetRequestBoardEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Feb 13, 2024
1 parent 2040fc1 commit 7fe583b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions contracts/apps/WitnetPriceFeeds.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ contract WitnetPriceFeeds
IERC2362,
IWitnetPriceFeeds,
IWitnetPriceSolverDeployer,
IWitnetRequestBoardEvents,
Ownable2Step,
WitnetFeeds,
WitnetPriceFeedsData
Expand Down Expand Up @@ -136,9 +137,9 @@ contract WitnetPriceFeeds
function defaultRadonSLA()
override
public view
returns (WitnetV2.RadonSLA memory)
returns (Witnet.RadonSLA memory)
{
return WitnetV2.toRadonSLA(__storage().packedDefaultSLA);
return WitnetV2.toRadonSLA(__storage().packedDefaultSLA).toV1();
}

function estimateUpdateBaseFee(uint256 _evmGasPrice)
Expand Down Expand Up @@ -172,7 +173,7 @@ contract WitnetPriceFeeds

function latestUpdateRequest(bytes4 feedId)
override external view
returns (bytes32, WitnetV2.RadonSLA memory)
returns (bytes32, Witnet.RadonSLA memory)
{
return witnet.getQueryRequest(latestUpdateQueryId(feedId));
}
Expand Down Expand Up @@ -249,7 +250,7 @@ contract WitnetPriceFeeds
returns (uint256 _usedFunds)
{
require(
updateSLA.equalOrGreaterThan(defaultRadonSLA()),
updateSLA.equalOrGreaterThan(WitnetV2.toRadonSLA(__storage().packedDefaultSLA)),
"WitnetPriceFeeds: unsecure update"
);
return __requestUpdate(feedId, updateSLA);
Expand Down

0 comments on commit 7fe583b

Please sign in to comment.