Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hook getter #40

Merged
merged 3 commits into from
Mar 22, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
fix: remove flat
Schlagonia committed Mar 21, 2024
commit ac90a3f5a8b7411ef4c076d3ecd283ebec9953e6
2,056 changes: 0 additions & 2,056 deletions src/flat.sol

This file was deleted.


Unchanged files with check annotations Beta

uint256 internal constant MAX_BPS_EXTENDED = 1_000_000_000_000;
uint256 internal constant SECONDS_PER_YEAR = 31_556_952;
constructor(address _governance) Governance(_governance) {}

Check warning on line 40 in src/AprOracle/AprOracle.sol

GitHub Actions / solidity

Code contains empty blocks
/**
* @notice Get the current APR a strategy is earning.
/// @notice Array of all the enabled auction for this contract.
bytes32[] public enabledAuctions;
constructor() Governance(msg.sender) {}

Check warning on line 115 in src/Auctions/Auction.sol

GitHub Actions / solidity

Code contains empty blocks
/**
* @notice Initializes the Auction contract with initial parameters.
}
/// @dev Implements the take of the auction.
function _take(

Check warning on line 634 in src/Auctions/Auction.sol

GitHub Actions / solidity

Function body contains 73 lines but allowed no more than 50 lines
bytes32 _auctionId,
uint256 _maxAmount,
address _receiver,
* @dev Override to stake loose vault tokens after they
* are deposited to the `vault`.
*/
function _stake() internal virtual {}

Check warning on line 126 in src/Bases/4626Compounder/Base4626Compounder.sol

GitHub Actions / solidity

Code contains empty blocks
/**
* @dev If vault tokens are staked, override to unstake them before
* any withdraw or redeems.
* @param _amount The amount of vault tokens to unstake.
*/
function _unStake(uint256 _amount) internal virtual {}

Check warning on line 133 in src/Bases/4626Compounder/Base4626Compounder.sol

GitHub Actions / solidity

Code contains empty blocks
/**
* @dev Called during reports to do any harvesting of rewards needed.
*/
function _claimAndSellRewards() internal virtual {}

Check warning on line 138 in src/Bases/4626Compounder/Base4626Compounder.sol

GitHub Actions / solidity

Code contains empty blocks
/**
* @notice Return the current loose balance of this strategies `asset`.
* @notice If the vaults tokens are staked. To override and return the
* amount of vault tokens the strategy has staked.
*/
function balanceOfStake() public view virtual returns (uint256) {}

Check warning on line 158 in src/Bases/4626Compounder/Base4626Compounder.sol

GitHub Actions / solidity

Code contains empty blocks
/**
* @notice The full value denominated in `asset` of the strategies vault
constructor(
address _asset,
string memory _name
) BaseStrategy(_asset, _name) {}

Check warning on line 41 in src/Bases/HealthCheck/BaseHealthCheck.sol

GitHub Actions / solidity

Code contains empty blocks
/**
* @notice Returns the current profit limit ratio.
constructor(
address _asset,
string memory _name
) BaseHealthCheck(_asset, _name) {}

Check warning on line 18 in src/Bases/Hooks/BaseHooks.sol

GitHub Actions / solidity

Code contains empty blocks
// Deposit
function deposit(
uint256 assets,
uint256 shares,
address receiver
) internal virtual {}

Check warning on line 9 in src/Bases/Hooks/Hooks.sol

GitHub Actions / solidity

Code contains empty blocks
function _postDepositHook(
uint256 assets,