Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
caglacelik committed Dec 4, 2024
1 parent d7bbcf2 commit 020b9ae
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/BuyerAgent.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.20;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {LLMOracleTaskParameters} from "@firstbatch/dria-oracle-contracts/LLMOracleTask.sol";
import {Swan, SwanBuyerPurchaseOracleProtocol, SwanBuyerStateOracleProtocol} from "./Swan.sol";
import {SwanMarketParameters} from "./SwanManager.sol";
Expand Down Expand Up @@ -50,7 +50,7 @@ contract BuyerAgent is Ownable {
/*//////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/

/// @notice Emitted when a state update request is made.
event StateRequest(uint256 indexed taskId, uint256 indexed round);

Expand Down Expand Up @@ -146,7 +146,7 @@ contract BuyerAgent is Ownable {
if (_feeRoyalty < 1 || _feeRoyalty > swan.getCurrentMarketParameters().maxBuyerAgentFee) {
revert InvalidFee(_feeRoyalty);
}

feeRoyalty = _feeRoyalty;
amountPerRound = _amountPerRound;
name = _name;
Expand Down
11 changes: 6 additions & 5 deletions src/Swan.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ pragma solidity ^0.8.20;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import {UUPSUpgradeable} from "@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol";
import {LLMOracleCoordinator, LLMOracleTaskParameters} from "@firstbatch/dria-oracle-contracts/LLMOracleCoordinator.sol";
import {
LLMOracleCoordinator, LLMOracleTaskParameters
} from "@firstbatch/dria-oracle-contracts/LLMOracleCoordinator.sol";
import {BuyerAgentFactory, BuyerAgent} from "./BuyerAgent.sol";
import {SwanAssetFactory, SwanAsset} from "./SwanAsset.sol";
import {SwanManager, SwanMarketParameters} from "./SwanManager.sol";
Expand Down Expand Up @@ -161,8 +163,8 @@ contract Swan is SwanManager, UUPSUpgradeable {
/// @param newOwner address of the new owner.
function transferOwnership(address newOwner) public override onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
revert OwnableInvalidOwner(address(0));
}
// remove the old owner from the operator list
isOperator[msg.sender] = false;

Expand Down Expand Up @@ -378,5 +380,4 @@ contract Swan is SwanManager, UUPSUpgradeable {
function getListing(address _asset) external view returns (AssetListing memory) {
return listings[_asset];
}

}
}
6 changes: 5 additions & 1 deletion src/SwanManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ pragma solidity ^0.8.20;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import {LLMOracleTask, LLMOracleTaskParameters, LLMOracleCoordinator} from "@firstbatch/dria-oracle-contracts/LLMOracleCoordinator.sol";
import {
LLMOracleTask,
LLMOracleTaskParameters,
LLMOracleCoordinator
} from "@firstbatch/dria-oracle-contracts/LLMOracleCoordinator.sol";

/// @notice Collection of market-related parameters.
/// @dev Prevents stack-too-deep.
Expand Down

0 comments on commit 020b9ae

Please sign in to comment.