From 7fe583b08049602f1e2028906fc9398a62822717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20D=C3=ADaz?= Date: Tue, 13 Feb 2024 08:18:27 +0100 Subject: [PATCH] chore: declare WPF to emit IWitnetRequestBoardEvents --- contracts/apps/WitnetPriceFeeds.sol | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contracts/apps/WitnetPriceFeeds.sol b/contracts/apps/WitnetPriceFeeds.sol index 5fa107a1..37826b98 100644 --- a/contracts/apps/WitnetPriceFeeds.sol +++ b/contracts/apps/WitnetPriceFeeds.sol @@ -22,6 +22,7 @@ contract WitnetPriceFeeds IERC2362, IWitnetPriceFeeds, IWitnetPriceSolverDeployer, + IWitnetRequestBoardEvents, Ownable2Step, WitnetFeeds, WitnetPriceFeedsData @@ -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) @@ -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)); } @@ -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);