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
  • Write Methods
  • View Methods

Was this helpful?

  1. Developers
  2. Inception Vault (IV)

AdminInceptionVault

This contract acts as an intermediary between the inception vault owner and the Parallel protocol. It allows the owner to perform the following operations on VaultsCore :

  • Depositing

  • Borrowing

  • Repaying

  • Withdrawing

The contract also stores and lends out the minted PAR from the MIMO protocol.

There is also a claimMimo() function enabling the contract to claim earned MIMO through PAR minting.

Write Methods

initialize(address _owner, IAddressProvider addressProvider, IDebtNotifier debtNotifier, IWETH weth, IERC20 mimo, IInceptionVaultsCore inceptionVaultsCore)

Initializer function to set state variables upon cloning.

Param Name
Type
Description

_owner

address

AdminInceptionVault owner address

addressProvider

IAddressProvider

AddressProvider address

debtNotifier

IDebtNotifier

DebtNotifier address

weth

IWETH

WETH address

mimo

IERC20

MIMO address

inceptionVaultsCore

IInceptionVaultsCore

InceptionVaultsCore address

depositETH()

Calls VaultsCore depositETH().

depositETHAndBorrow(uint256 borrowAmount)

Calls VaultsCore depositETHAndBorrow().

Param Name
Type
Description

borrowAmount

uint256

The amount of borrowed StableX tokens in WEI

depositAndBorrow(address _collateralType, uint256 _depositAmount, uint256 _borrowAmount)

Calls VaultsCore depositAndBorrow().

Param Name
Type
Description

_collateralType

address

The address of the collateral type to be deposited

_depositAmount

uint256

The amount of tokens to be deposited in WEI

_borrowAmount

uint256

The amount of borrowed StableX tokens in WEI

withdraw(uint256 vaultId, uint256 amount)

Calls VaultsCore withdraw().

Param Name
Type
Description

vaultId

uint256

The id of the vault from which to withdraw the collateral

amount

uint256

The amount of ERC20 tokens to be withdrawn

withdrawETH(uint256 vaultId, uint256 amount)

Calls VaultsCore withdrawETH().

Param Name
Type
Description

vaultId

uint256

The id of the vault from which to withdraw the collateral

amount

uint256

The amount of ETH to be withdrawn

claimMimo()

Releases the outstanding MIMO balance.

lendPAR(uint256 _amount, address _to)

Lends PAR to an InceptionVault user.

Param Name
Type
Description

_amount

uint256

The amount of PAR to be lent

_to

address

The address of the InceptionVault user

transferMimo(uint256 _amount, address _to)

Transfers MIMO from the AdminInceptionVault to the _to address.

Param Name
Type
Description

_amount

uint256

Amount of MIMO to transfer

_to

address

Address to transfer MIMOs to

transferPar(uint256 _amount, address _to)

Transfers PAR from the AdminInceptionVault to the _to address.

Param Name
Type
Description

_amount

uint256

Amount of PAR to transfer

_to

address

Address to transfer PARs to

function deposit(IERC20 collateral, uint256 amount)

Calls VaultsCore deposit().

Param Name
Type
Description

collateral

IERC20

The address of the collateral type to be deposited

amount

uint256

The amount of tokens to be deposited

borrow(uint256 vaultId, uint256 amount)

Calls VaultsCore borrow().

Param Name
Type
Description

vaultId

uint256

The id of the vault from which to borrow

amount

uint256

The amount of stableX to borrow

View Methods

getA()

Returns the AddressProvider address.

getDebtNotifier()

Returns the DebtNotifier address.

getWeth()

Returns the WETH address.

getMimo()

Returns the MIMO address.

getInceptionCore()

Returns the InceptionVaultsCore address.

getCollateralCount()

Returns the number of collaterals used to borrow PAR.

getCollateral(uint256 _id)

Returns the address of a collateral for a specific id.

Call Params

Name
Type
Description

_id

uint256

Collateral id

Return Values

Name
Type
Description

NA

address

Collateral address

getCollateralId(address _collateral)

Returns a collateral id for a specific collateral address.

Call Params

Name
Type
Description

_collateral

address

Address of the collateral

Return Values

Name
Type
Description

NA

uint256

Collateral id

PreviousInceptionVaultFactoryNextInceptionVaultCore

Last updated 1 year ago

Was this helpful?