Skip to content

Commit

Permalink
chore: update to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Oct 19, 2023
1 parent c06bfec commit ff07ea7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
[submodule "lib/tokenized-strategy"]
path = lib/tokenized-strategy
url = https://github.com/yearn/tokenized-strategy
branch = 3.0.1
[submodule "lib/yearn-vaults-v3"]
path = lib/yearn-vaults-v3
url = https://github.com/yearn/yearn-vaults-v3
branch = 3.0.1
3 changes: 3 additions & 0 deletions src/AprOracle/AprOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ contract AprOracle {
) public view returns (uint256 apr) {
IVault vault = IVault(_vault);

// Check if the full profit has already been unlocked.
if(vault.fullProfitUnlockDate() <= block.timestamp) return 0;

// Need the total assets in the vault post delta.
uint256 assets = uint256(int256(vault.totalAssets()) + _delta);

Expand Down
2 changes: 1 addition & 1 deletion src/ReportTrigger/CommonReportTrigger.sol
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ contract CommonReportTrigger is Governance {
IVault vault = IVault(_vault);

// Don't report if the vault is shutdown.
if (vault.shutdown()) return (false, bytes("Shutdown"));
if (vault.isShutdown()) return (false, bytes("Shutdown"));

// Cache the strategy parameters.
IVault.StrategyParams memory params = vault.strategies(_strategy);
Expand Down

0 comments on commit ff07ea7

Please sign in to comment.