Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/solmate
48 changes: 25 additions & 23 deletions src/interfaces/vault/IAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,45 @@

pragma solidity ^0.8.15;

import { IOwned } from "../IOwned.sol";
import { IERC4626Upgradeable as IERC4626 } from "openzeppelin-contracts-upgradeable/interfaces/IERC4626Upgradeable.sol";
import { IPermit } from "../IPermit.sol";
import { IPausable } from "../IPausable.sol";
import {IOwned} from "../IOwned.sol";
import {IERC4626Upgradeable as IERC4626} from "openzeppelin-contracts-upgradeable/interfaces/IERC4626Upgradeable.sol";
import {IPermit} from "../IPermit.sol";
import {IPausable} from "../IPausable.sol";

interface IAdapter is IERC4626, IOwned, IPermit, IPausable {
function strategy() external view returns (address);
function strategy() external view returns (address);

function strategyConfig() external view returns (bytes memory);
function strategyConfig() external view returns (bytes memory);

function strategyDeposit(uint256 assets, uint256 shares) external;
function strategyDeposit(uint256 assets, uint256 shares) external;

function strategyWithdraw(uint256 assets, uint256 shares) external;
function strategyWithdraw(uint256 assets, uint256 shares) external;

function supportsInterface(bytes4 interfaceId) external view returns (bool);
function supportsInterface(bytes4 interfaceId) external view returns (bool);

function setPerformanceFee(uint256 fee) external;
function setPerformanceFee(uint256 fee) external;

function performanceFee() external view returns (uint256);
function performanceFee() external view returns (uint256);

function highWaterMark() external view returns (uint256);
function highWaterMark() external view returns (uint256);

function accruedPerformanceFee() external view returns (uint256);
function accruedPerformanceFee() external view returns (uint256);

function harvest() external;
function harvest() external;

function harvestCooldown() external view returns (uint256);
function lastHarvest() external view returns (uint256);

function setHarvestCooldown(uint256 harvestCooldown) external;
function harvestCooldown() external view returns (uint256);

function initialize(
bytes memory adapterBaseData,
address externalRegistry,
bytes memory adapterData
) external;
function setHarvestCooldown(uint256 harvestCooldown) external;

function decimals() external view returns (uint8);
function initialize(
bytes memory adapterBaseData,
address externalRegistry,
bytes memory adapterData
) external;

function decimalOffset() external view returns (uint8);
function decimals() external view returns (uint8);

function decimalOffset() external view returns (uint8);
}
4 changes: 2 additions & 2 deletions src/interfaces/vault/IWithRewards.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.15;

interface IWithRewards {
function claim() external;
function claim() external returns (bool);

function rewardTokens() external view returns (address[] memory);
function rewardTokens() external view returns (address[] memory);
}
Loading