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)

InceptionVaultsDataProvider

This contract handles individual vaults state, base debt and vault related read functions.

Each user inception vault state is store in a InceptionVault struct :

Param Name
Type
Description

owner

address

Vault owner

collateralBalance

uint256

Vault collateral balance

baseDebt

uint256

Vault base debt (not including interests)

createdAt

uint256

Vault creation timestamp

Write Methods

initialize(IInceptionVaultsCore inceptionVaultsCore, IAddressProvider addressProvider)

Initializer function to set state variables upon cloning.

Requirements :

  • Can only be called once

Param Name
Type
Description

inceptionVaultsCore

IInceptionVaultsCore

InceptionVaultsCore address

addressProvider

IAddressProvider

AddressProvider address

createVault(address _owner)

Opens a new vault.

Requirements :

  • Can only be called by InceptionVaultsCore

Param Name
Type
Description

_owner

address

Owner of the new vault.

setCollateralBalance(uint256 _vaultId, uint256 _balance)

Sets the collateral balance of a vault.

Requirements :

  • Can only be called by InceptionVaultsCore

Param Name
Type
Description

_vaultId

uint256

Vault id of which the collateral balance will be updated

_balance

uint256

New vault balance

setBaseDebt(uint256 _vaultId, uint256 _newBaseDebt)

Sets the base debt of a vault.

Requirements :

  • Can only be called by InceptionVaultsCore

Param Name
Type
Description

_vaultId

uint256

Vault ID of which the base debt will be updated

_newBaseDebt

uint256

New vault base debt

View Methods

getA()

Returns the AddressProvider address.

getInceptionVaultsCore()

Returns the InceptionVaultsCore address.

getInceptionVaultCount()

Returns the number of opened inception vaults.

getBaseDebt()

Returns the total base debt.

vaultOwner(uint256 _id)

Returns the owner of a specific vault.

Call Params

Name
Type
Description

_id

uint256

The ID of the vault

Return Value

Name
Type
Description

NA

address

Vault owner

vaultCollateralBalance(uint256 _id)

Returns the collateral balance of a specific vault.

Call Params

Name
Type
Description

_id

uint256

The ID of the vault

Return Value

Name
Type
Description

NA

uint256

Vault collateral balance

vaultBaseDebt(uint256 _id)

Returns the base debt of a specific vault.

Call Params

Name
Type
Description

_id

uint256

The ID of the vault

Return Value

Name
Type
Description

NA

uint256

Vault base debt

vaultId(address _owner)

Retrieves the vault id for a specified owner.

Call Params

Name
Type
Description

_owner

address

Address of the owner of the vault

Return Value

Name
Type
Description

NA

uint256

Vault id

vaultDebt(uint256 _id)

Returns the debt of a specific vault.

Call Params

Name
Type
Description

_id

uint256

The ID of the vault

Return Value

Name
Type
Description

NA

uint256

Vault debt

vaultExists(uint256 _id)

Checks if a specified vault exists.

Call Params

Name
Type
Description

_id

uint256

The ID of the vault

Return Value

Name
Type
Description

NA

bool

true if vault exists false if not

getVault(uint256 _id)

Returns a specific vault state.

Call Params

Name
Type
Description

_id

uint256

The ID of the vault

Return Value

Name
Type
Description

NA

struct

InceptionVault struct

PreviousInceptionVaultCoreNextInceptionVaultPriceFeed

Last updated 1 year ago

Was this helpful?