Maple
  • Welcome to Maple
  • Maple for Lenders
    • Introduction
    • Lending
    • Defaults and Impairments
    • Margin Calls and Liquidations
    • Risk
    • Withdrawal Process
  • syrupUSDC for Lenders
    • Powered by Maple
    • Lending in syrupUSDC and syrupUSDT
    • Commitments
    • Drips Rewards
    • Withdrawals
    • Monthly Updates
    • Pendle Integration
  • SyrupUSDC Rewards Prize Draw Program Summary
  • FAQ
  • Maple for Borrowers
    • Introduction
    • Loan Management
  • Maple for Token Holders
    • Introduction to SYRUP
      • MPL to SYRUP Conversion
      • FAQs
    • SYRUP Tokenomics
      • Staking
      • Staking Smart Contract Details
    • Governance and Voting
    • Drips Rewards
    • Research and Media
      • Podcasts
      • News Articles
      • TV Segments
      • Research Reports
      • Data Dashboards
    • Additional Resources
  • Technical Resources
    • Protocol Overview
      • Background
      • Protocol Actors
      • Smart Contract Architecture
      • Glossary
      • Smart Contract Addresses
      • Fees
      • Composability
      • Proxies and Upgradeability
    • Security
      • Security
      • List of Assumptions
      • External Entry Points
      • Emergency Protocol Pause
      • Protocol Invariants
      • Test Report
    • Loans
      • Loans
      • Fixed Term Loans
      • Open Term Loans
      • Refinancing
      • Impairments
      • Defaults
    • Pools
      • Pools
      • Pool Creation
      • PoolManager
      • PoolDelegateCover
      • Accounting
        • Pool Accounting
        • Pool Exchange Rates
    • Strategies
      • Fixed Term Loan Manager
        • Overview
        • Claims
        • Advance Payment Accounting
        • Accounting Examples
      • Open Term Loan Manager
      • DeFi Strategies
    • Withdrawal Managers
      • WithdrawalManager (Cyclical)
      • WithdrawalManager (Queue)
    • Singletons
      • Globals
      • MapleTreasury
      • Oracles
      • Pool Permission Manager
    • Admin Functions
      • Governor Admin Actions
        • Operational Admin Actions
      • Pool Delegate Admin Actions
      • Timelocks
    • Operations
      • Protocol Deployment
      • Open Term Loan Deployment
      • December 2023 Deployment & Upgrade Procedure
      • Strategies Release Deployment Procedure
    • Interfaces
      • FixedTermLoan
      • FixedTermLoanFactory
      • FixedTermLoanFeeManager
      • FixedTermLoanInitializer
      • FixedTermLoanManager
      • FixedTermLoanManagerFactory
      • FixedTermLoanManagerInitializer
      • FixedTermLoanRefinancer
      • Globals
      • Liquidator
      • LiquidatorFactory
      • LiquidatorInitializer
      • OpenTermLoan
      • OpenTermLoanFactory
      • OpenTermLoanInitializer
      • OpenTermLoanManager
      • OpenTermLoanManagerFactory
      • OpenTermLoanManagerInitializer
      • OpenTermLoanRefinancer
      • Pool
      • PoolDelegateCover
      • PoolDeployer
      • PoolManager
      • PoolManagerFactory
      • PoolManagerInitializer
      • PoolPermissionManager
      • WithdrawalManager (Cyclical)
      • WithdrawalManagerFactory (Cyclical)
      • WithdrawalManagerInitializer (Cyclical)
      • WithdrawalManager (Queue)
      • WithdrawalManagerFactory (Queue)
      • WithdrawalManagerInitializer (Queue)
    • SYRUP Token
      • Architectural Overview
      • Base ERC20 Structure
      • Upgradability
      • Modules
      • Time Locks
      • Recapitalization Module
      • Emergency Module
      • Deployment and Migration Procedure
    • GraphQL API
    • SDK
      • Introduction
      • Installation
      • Protocol Actors
      • Usage Guide
  • Troubleshooting & Support
    • Intercom
  • Maple 1.0
    • Access to deprecated Maple 1.0
  • Legal
    • Borrower MLA
    • KYC
    • Interface Terms of Use
    • Privacy Policy
    • syrupUSDC and syrupUSDT - Risks
    • syrupUSDC and syrupUSDT - Defaults and Impairments
    • syrupUSDC and syrupUSDT - Available Jurisdictions
    • Interface Terms of Use [syrupUSDC and syrupUSDT]
    • Interface Terms of Use [Syrup.fi/convert/ and Syrup.fi/stake/]
    • syrupUSDC and syrupUSDT- Privacy Policy
    • SyrupUSDC Rewards Prize Draw Terms & Conditions
Powered by GitBook
On this page
  1. Technical Resources
  2. Operations

Protocol Deployment

Protocol Deployment

  1. Confirm Governor address.

  2. Confirm Treasury address.

  3. Deploy MapleGlobalsV2 implementation address and verify on Etherscan.

  4. Deploy MapleGlobalsV2 proxy address and verify on Etherscan, declaring the Governor and implementation address.

  5. Deploy the Pool Deployer contract, declaring the MapleGlobalsV2 address.

  6. Set values in the MapleGlobalsV2 contract with the Governor address (revisit this):

    1. globals.setMapleTreasury(treasury);

    2. globals.setMigrationAdmin(migrationAdmin);

    3. globals.setSecurityAdmin(securityAdmin);

    4. globals.setValidPoolAsset(USDC, true); (Do for all assets)

    5. globals.setPriceOracle(USDC, 1e8); (Do for all assets

    6. globals.setValidPoolDeployer(address(deployer), true);

    7. globals.setDefaultTimelockParameters(1 weeks, 2 days);

  7. Deploy all proxy factories, implementations, and initializers, passing in MapleGlobalsV2 to the factories:

    1. Liquidator

    2. LoanManager

    3. PoolManager

    4. WithdrawalManager

    5. Ignore Loan since it has already been deployed.

  8. Register implementations for all factories and set default versions:

    1. Liquidator - 100

    2. LoanManager - 100

    3. PoolManager - 100

    4. WithdrawalManager - 100

    5. Ignore Loan to avoid accidental deployments of V4 loans prior to migration.

  9. Allowlist all factories in Maple Globals:

    1. Liquidator

    2. Loan

    3. LoanManager

    4. PoolManager

    5. WithdrawalManager

  10. Transfer ownership of MapleGlobalsV2 to the governor.

    1. globals.setPendingGovernor(governor);

    2. globals.acceptGovernor();

At this stage, the following is true:

  1. MapleGlobalsV2 is deployed and controlled by the governor

  2. All factories are ready to deploy protocol contracts.

  3. Allowed Assets are ready to be used in the protocol.

  4. Oracles are configured.

  5. Migration and Security admins are configured.

PreviousOperationsNextOpen Term Loan Deployment

Last updated 6 months ago