-
Notifications
You must be signed in to change notification settings - Fork 213
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
Feat/upgrade on forking #978
base: feat/vaults
Are you sure you want to change the base?
Changes from 1 commit
42c64b6
3673df4
ac5e23b
969dcf5
9f00310
9a18b10
c3840d5
2fa8d9a
ba9417a
ef7c242
43814a5
67c7d88
23877f5
ed61031
d1bf561
be49584
7554864
a3685a5
863a3c0
df4508d
8f21f92
896bd55
1167c03
47fb019
57074e0
bf8c893
1d0144a
d1a589c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Unchanged files with check annotations Beta
// SPDX-License-Identifier: GPL-3.0 | ||
/* See contracts/COMPILERS.md */ | ||
pragma solidity 0.4.24; | ||
import {UnstructuredStorage} from "@aragon/os/contracts/common/UnstructuredStorage.sol"; | ||
/* See contracts/COMPILERS.md */ | ||
pragma solidity 0.4.24; | ||
import "@aragon/os/contracts/apps/AragonApp.sol"; | ||
Check warning on line 7 in contracts/0.4.24/oracle/LegacyOracle.sol
|
||
import "../../common/interfaces/ILidoLocator.sol"; | ||
Check warning on line 9 in contracts/0.4.24/oracle/LegacyOracle.sol
|
||
import "../utils/Versioned.sol"; | ||
interface IAccountingOracle { |
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity 0.4.24; | ||
import "@aragon/os/contracts/common/UnstructuredStorage.sol"; | ||
Check warning on line 5 in contracts/0.4.24/utils/Versioned.sol
|
||
/** | ||
* @title Adapted code of /contracts/0.8.9/utils/Versioned.sol |
} | ||
// Old upgraded non-proxy contracts | ||
IBurner public immutable _oldBurner; | ||
IOracleReportSanityChecker public immutable _oldOracleReportSanityChecker; | ||
// New proxy contracts | ||
IAccounting public immutable _accounting; | ||
IVaultHub public immutable _vaultHub; | ||
// New non-proxy contracts | ||
IBurner public immutable _burner; | ||
IOracleReportSanityChecker public immutable _oracleReportSanityChecker; | ||
// Existing proxies and contracts | ||
// | ||
// Structured storage | ||
// | ||
uint256 private _upgradeBlockNumber = UPGRADE_NOT_STARTED; | ||
Check warning Code scanning / Slither State variables that could be declared constant Warning
UpgradeTemplateV3._upgradeBlockNumber should be constant
|
||
bool public _isUpgradeFinished; | ||
uint256 internal INITIAL_OLD_BURNER_STETH_BALANCE; | ||
_assertSingleAragonAppImplementation(_aragonAppLidoRepo, _lidoImplementation); | ||
} | ||
function _assertSingleAragonAppImplementation(IAragonAppRepo repo, address implementation) internal view { | ||
(, address actualImplementation, ) = repo.getLatest(); | ||
if (actualImplementation != implementation) { | ||
revert IncorrectAragonAppImplementation(address(repo), implementation); | ||
} | ||
} | ||
Check warning Code scanning / Slither Unused return Medium |
||
function _assertFinalACL() internal view { | ||
address agent = _agent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧠 Testnet and Mainnet both together?