LogoLogo
  • Introduction
  • Parallel Protocol
    • PRL (Parallel Governance Token)
      • Issuance
      • Bridging Module
        • Specifications
        • Implementation
      • Tokenomics
        • Epoch Concept
        • Staking Mechanisms
        • ParaBoost
        • Fee Distribution
      • Governance
      • MIMO to PRL Migration
    • PAR (€ stablecoin)
      • How does PAR work?
      • Where can I get PAR ?
    • paUSD ($ stablecoin)
      • How does paUSD work?
      • Where can I get paUSD ?
    • Classic Vaults
      • Depositing
      • Borrowing
      • Fees
        • Fees Generation
      • Withdrawing
      • Repaying
      • Liquidating
    • Bridging Module
      • LayerZero Infrastructure
      • Specifications
      • Implementation
        • PAR
        • paUSD
    • Super Vaults (SV)
      • Leveraging
      • Rebalancing
      • EmptyVault
      • Automated Rebalance
      • Managed Rebalance
    • Inception Vaults (IV)
      • Borrowing
      • Liquidating
  • DAO & Governance
    • sPRL and Voting Power
    • Governance process
    • Proposal Framework
      • Parallel Integration Request (PIR)
      • Parallel Governance Proposal (PGP)
      • Parallel Improvement Protocol (PIP)
    • DAO Multisigs
      • DAO Multisigs Elections
        • Election 1
        • Election 2
        • Election 3
        • Election 4
        • Election 5
        • Election 6
      • Multisigs Transactions History
        • May 2022 Multisig History
        • June 2022 Multisig History
        • July 2022 Multisig History
        • August 2022 Multisig History
        • September 2022 Multisig History
        • October 2022 Multisig History
        • November 2022 Multisig History
        • December 2022 Multisig History
        • January 2023 Multisig History
        • February 2023 Multisig History
        • March 2023 Multisig History
        • April 2023 Multisig History
        • May 2023 Multisig History
        • June 2023 Multisig History
        • July 2023 Multisig History
        • August 2023 Multisig History
        • September 2023 Multisig History
        • October 2023 Multisig History
        • November 2023 Multisig History
        • December 2023 Multisig History
        • January 2024 Multisig History
        • February 2024 Multisig History
        • March 2024 Multisig History
        • April 2024 Multisig History
        • May 2024 Multisig History
    • Parallel Emergency Guardians
    • DAO Treasury
      • DAO Treasury Reports
  • Risk Assessments
    • Parallel's Risk framework
    • Methodology
    • Risk per Assets
      • PAR
        • Ethereum Assets
        • Polygon Assets
        • Fantom Assets
      • paUSD
        • Ethereum Assets
        • Polygon Assets
    • Risk parameters
      • PAR
        • Ethereum Risk parameters
        • Polygon Risk parameters
        • Fantom Risk parameters
      • paUSD
        • Ethereum Risk parameters
        • Polygon Risk parameters
    • Insurance Fund
  • Developers
    • Developer Guide
    • Parallel Governance Token (PRL)
    • Tokenomics
      • Key Operations Flows
      • Contracts
    • Classic Vaults
      • Architecture
      • VaultsCore
      • Opening a vault
      • Borrowing and minting PAR/paUSD
    • Bridging Module
      • Architecture
      • Sample Use Cases
    • Super Vault (SV)
      • Proxy Design
        • MIMOProxy
        • MIMOProxyGuard
        • MIMOProxyFactory
      • Action Contracts
        • MIMOEmptyVault
        • MIMOLeverage
        • MIMORebalance
        • MIMOAutoRebalance
        • MIMOManagedRebalance
        • MIMOProxyActions
        • MIMOVaultActions
      • Leverage Max Amount Derivation
    • Inception Vault (IV)
      • IV Architecture
      • InceptionVaultFactory
      • AdminInceptionVault
      • InceptionVaultCore
      • InceptionVaultsDataProvider
      • InceptionVaultPriceFeed
    • Contract Addresses
      • Parallel V3
        • Core Protocol
        • Parallel Governance Token
      • Parallel V2
        • PAR
          • Ethereum
          • Polygon PoS
          • Fantom
        • paUSD
          • Ethereum
          • Polygon PoS
      • Super Vaults (SV)
        • PAR
          • Ethereum
          • Polygon PoS
        • paUSD
          • Ethereum
          • Polygon PoS
      • Inception Vaults (IV)
        • Kovan
  • Resources
    • User Guides
      • Setting up
      • Managing Transactions on EVM blockchains
      • Troubleshooting
      • Mint PAR
      • Liquidity Providing
        • Provide PAR-USDC liquidity on Uniswap V3 (Ethereum)
        • Provide PAR-jEUR liquidity on Balancer (Polygon PoS)
        • Impermanent loss
      • How to Migrate to PRL?
      • How to Bridge Parallel Tokens?
      • How to Stake PRL?
    • Security & Audits
    • Links
    • Glossary
    • Brand Kit
Powered by GitBook
On this page

Was this helpful?

  1. Developers
  2. Inception Vault (IV)

InceptionVaultFactory

PreviousIV ArchitectureNextAdminInceptionVault

Last updated 1 year ago

Was this helpful?

This contract is responsible for deploying and initializing the 3 Inception Vault contracts. For gas efficiency the deployment is done using the OpenZeppelin library.

Write Methods

cloneInceptionVault(IInceptionVaultsCore.VaultConfig calldata _vaultConfig, IERC20 _inceptionCollateral, address _inceptionVaultPriceFeed, address _assetOracle)

Clones and initializes all 3 Inception Vault contracts :

Requirements :

  • The _inceptionCollateral cannot be set to address(0)

  • The _inceptionPriceFeed cannot be set to address(0)

  • If the _inceptionVaultPriceFeed is a custom price feed then the provided _assetOracle cannot be address(0)

  • If the _inceptionVaultPriceFeed is not a custom price feed then the provided _assetOracle must be address(0)

Param Name
Type
Description

_vaultConfig

struct

VaultConfig struct with all inception vault configuration parameters

_inceptionCollateral

IERC20

The address of the ERC20 token that will be set as inceptionCollateral

_inceptionVaultPriceFeed

address

The address of the InceptionVaultPriceFeed to be used for the inception vault

_assetOracle

address

The address of the oracle of the inception vault collateral

addPriceFeed(address _address)

Adds a new standard price feed to be used for inception vaults deployments.

Requirements :

  • Can only be called by the contract owner which is set to the DAO multisig

Param Name
Type
Description

_address

address

The address of the new standard price feed

View Methods

a()

Returns the AddressProvider address.

debtNotifier()

Returns the DebtNotifier address.

weth()

Returns the WETH address.

mimo()

Returns the MIMO address.

adminInceptionVaultBase()

Returns the AdminInceptionVault implementation contract address.

inceptionVaultsCoreBase()

Returns the InceptionVaultsCore implementation contract address.

inceptionVaultsDataProviderBase()

Returns the InceptionVaultsDataProvider implementation contract address.

getInceptionVaultCount()

Returns the number of inception vaults deployed.

getPriceFeedCount()

Returns the number of standard price feeds available.

getInceptionVault(uint256 _id)

Call Params

Name
Type
Description

_id

uint256

The id of the queried inception vault

Return Values

Name
Type
Description

NA

struct

InceptionVault struct containing all inception vault contract addresses

InceptionVault

Name
Type
Description

isCustomPriceFeed

bool

true if the set price feed is a custom one false if not

adminInceptionVault

IAdminInceptionVault

AdminInceptionVault address

inceptionVaultsCore

IInceptionVaultsCore

InceptionVaultsCore address

inceptionVaultsDataProvider

IInceptionVaultsDataProvider

InceptionVaultsDataProvider address

inceptionVaultPriceFeed

IInceptionVaultPriceFeed

InceptionVaultPriceFeed address

getPriceFeed(uint256 _id)

Call Params

Name
Type
Description

_id

uint256

The id of the queried inception vault

Return Params

Name
Type
Description

NA

address

InceptionVaultPrice address

getPriceFeedId(address _priceFeed)

Call Params

Name
Type
Description

_priceFeed

address

InceptionVaultPriceFeed address

Returned Values

Name
Type
Description

NA

uint256

InceptionVaultPriceFeed id

Clones
AdminInceptionVault
InceptionVaultsCore
InceptionVaultsDataProvider