Skip to content

Split VaultRegistry from OneBtc For the Contract Size Issue#85

Open
apptreeso wants to merge 9 commits intomainfrom
contract-size
Open

Split VaultRegistry from OneBtc For the Contract Size Issue#85
apptreeso wants to merge 9 commits intomainfrom
contract-size

Conversation

@apptreeso
Copy link
Contributor

No description provided.

@apptreeso apptreeso self-assigned this Jan 26, 2022
IExchangeRateOracle oracle;

function initialize(IRelay _relay, IExchangeRateOracle _oracle) external initializer {
function initialize(IRelay _relay, IExchangeRateOracle _oracle, IVaultRegistry _vaultRegistry) external initializer {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this create an issue for contract upgrade? as upgrade don't work with new initializer? can you double check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added functions to update the contract addresses in initialize() functions.

@hashmesan
Copy link

VaultRegistry and Collateral as separate contract makes a lot of sense. This will lower the contract size on OneBTC significantly!

The branch is quite out of date, maybe it's less risky branching off from main now, and carefully copy over?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants