Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

AP-724 mainnet readiness #345

Merged
merged 61 commits into from
Aug 30, 2023
Merged

AP-724 mainnet readiness #345

merged 61 commits into from
Aug 30, 2023

Conversation

stevieraykatz
Copy link
Contributor

@stevieraykatz stevieraykatz commented Aug 24, 2023

Closes: https://linear.app/angel-protocol/issue/AP-698/core-contracts-deployed-to-polygon-mainnet

Explanation of the solution

At some point we started deploying contracts with proxyAdmin signer instead of deployer. This PR changes the deployer back to deployer signer.

In prod, we don't want the proxyAdmin to be an EOA wallet but instead to be a multisig. If we use a multisig that is a proxy for this proxyAdmin ms, then it needs a proxy admin and we get into a weird "who watches the watcher" situation. The solution I've employed is to deploy an immutable proxyAdmin multisig which largely resembles the GenericMultisig we use extensively in our protocol sans the upgrade path. In the rare event that we need to update the implementation of our ProxyAdmin wallet, we can deploy a new immutable multisig and then transfer proxy admin from the old admin ms to the new one.

In a lot of cases, our deployment scripts did an implicit lookup for the old proxyAdmin signer and then passed the signer's address into the proxy admin arg for proxy initialization. I've added an argument to these scripts so that the admin address must be specified explicitly.

Instructions on making this work

  • run yarn or yarn install to install npm dependencies

@linear
Copy link

linear bot commented Aug 24, 2023

AP-698 Core contracts deployed to Polygon (mainnet)

Multisig configs

  • AP Team Multisig

    • owners:
      • 0xF71eba1cf57997B6C52eA33D7939A330D6D85502
      • 0x165d1f1361490974ea2F2A4079b5828E81F13b11
      • 0x3b8172A70229AE7a540Ce164d640C7C9e072876b
      • 0x13C9060a611e4277a93ca259068256271fC2d7B4
    • _approvalsRequired: 2
    • _requireExecution: false
    • _transactionExpiry: 604800 (secs in 1 week)
  • Charity Applications Multisig

    • owners:
      • 0xF71eba1cf57997B6C52eA33D7939A330D6D85502
      • 0x165d1f1361490974ea2F2A4079b5828E81F13b11
      • 0x13C9060a611e4277a93ca259068256271fC2d7B4
    • _approvalsRequired: 1
    • _requireExecution: false
    • _transactionExpiry: 345600 (secs in 4 days)
    • _gasAmount: 0.18 MATIC (actual input would be 0.18 * 10^18 ??)
    • _seedSplitToLiquid: 0
    • _seedAsset: address(0)
    • _seedAmount: 0

Protocol-Level Fees (in bps):

  • Balance: 0
  • BalanceCharity: 0
  • Deposit: 150 (ie. 1.5%)
  • DepositCharity: 150 (ie. 1.5%)
  • Withdraw: 0
  • WithdrawCharity: 0
  • EarlyLockedWithdraw: 0
  • EarlyLockedWithdrawCharity: 1000 (ie. 10%)

@stevieraykatz stevieraykatz changed the title AP-698 mainnet readiness [WIP] AP-698 mainnet readiness Aug 24, 2023
tasks/deploy/deployAngelProtocol.ts Outdated Show resolved Hide resolved
utils/manageAddressFile/types.ts Outdated Show resolved Hide resolved
.env.template Outdated Show resolved Hide resolved
utils/env.config.ts Outdated Show resolved Hide resolved
tasks/deploy/deploySideChain.ts Outdated Show resolved Hide resolved
tasks/manage/gasFwdFactory/updateRegistrar.ts Outdated Show resolved Hide resolved
tasks/manage/verifyRegistrar.ts Show resolved Hide resolved
tasks/upgrade/endowmentMultiSig/upgradeEmitter.ts Outdated Show resolved Hide resolved
contracts/multisigs/ProxyAdmin.sol Outdated Show resolved Hide resolved
@stevieraykatz stevieraykatz self-assigned this Aug 25, 2023
@SovereignAndrey SovereignAndrey changed the title [WIP] AP-698 mainnet readiness [WIP] AP-724 mainnet readiness Aug 26, 2023
@linear
Copy link

linear bot commented Aug 26, 2023

@stevieraykatz stevieraykatz changed the title [WIP] AP-724 mainnet readiness AP-724 mainnet readiness Aug 26, 2023
@linear
Copy link

linear bot commented Aug 26, 2023

AP-698 Core contracts deployed to Polygon (mainnet)

Registrar configs

  • Treasury: 0x4C6cDdFC00064D73E64B34aE453884de1Bf6D639

Multisig configs

  • AP Team Multisig

    • owners:
      • 0xF71eba1cf57997B6C52eA33D7939A330D6D85502
      • 0x165d1f1361490974ea2F2A4079b5828E81F13b11
      • 0x3b8172A70229AE7a540Ce164d640C7C9e072876b
      • 0x13C9060a611e4277a93ca259068256271fC2d7B4
    • approvalsRequired: 2
    • requireExecution: false
    • transactionExpiry: 604800 (secs in 1 week)
  • Charity Applications Multisig

    • owners:
      • 0xF71eba1cf57997B6C52eA33D7939A330D6D85502
      • 0x165d1f1361490974ea2F2A4079b5828E81F13b11
      • 0x13C9060a611e4277a93ca259068256271fC2d7B4
    • approvalsRequired: 1
    • requireExecution: false
    • transactionExpiry: 345600 (secs in 4 days)
    • gasAmount: 0.18 MATIC (actual input would be 0.18 * 10^18 ??)
    • seedSplitToLiquid: 0
    • seedAsset: address(0)
    • seedAmount: 0

Protocol-Level Fees (in bps):

  • Balance: 0
  • BalanceCharity: 0
  • Deposit: 150 (ie. 1.5%)
  • DepositCharity: 150 (ie. 1.5%)
  • Withdraw: 0
  • WithdrawCharity: 0
  • EarlyLockedWithdraw: 0
  • EarlyLockedWithdrawCharity: 1000 (ie. 10%)

config/index.ts Show resolved Hide resolved
config/index.ts Show resolved Hide resolved
.env.template Show resolved Hide resolved
SovereignAndrey and others added 3 commits August 30, 2023 14:59
* FYEO-ANGL-ID-29: MISSING ZERO ADDRESS CHECKS

* validator used in core contracts

* add more checks w/ Validator; Fix validator imports;

---------

Co-authored-by: Andrey <SovereignAndrey>
@0xNeshi 0xNeshi merged commit 283a226 into master Aug 30, 2023
@0xNeshi 0xNeshi deleted the AP-698-mainnet-readiness branch August 30, 2023 07:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants