Skip to content

Commit

Permalink
L03 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
caglacelik committed Nov 26, 2024
1 parent c4088a7 commit 8f3c4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LLMOracleRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.22;
pragma solidity ^0.8.20;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
Expand Down Expand Up @@ -144,6 +144,6 @@ contract LLMOracleRegistry is OwnableUpgradeable, UUPSUpgradeable {

/// @notice Check if an Oracle is registered.
function isRegistered(address user, LLMOracleKind kind) public view returns (bool) {
return registrations[user][kind] != 0;
return registrations[user][kind] >= getStakeAmount(kind);
}
}

0 comments on commit 8f3c4a3

Please sign in to comment.