# Potion Vault

{% hint style="info" %}
This contract has been audited by Solidity Finance. You can view the audit [here](https://solidity.finance/audits/PotionVault/).
{% endhint %}

The PotionVault is the main Poison.Finance contract, it implements the logic for Vault, through which users can mint new pTokens against their [supported collateral tokens](https://docs.poison.finance/appendix/supported-collateral-tokens). Current prices of minted pTokens are provided by Chainlink Price Oracles and determine the Cratio of each Vault. The PotionVault Contract also contains the logic for liquidating Vaults with Cratios below the minimum for their minted pTokens.

```
interface IPotionVault {
    
    function open(uint collateral, uint amount, uint id, uint synid) external;
    
    function close(uint id) external;
    
    function deposit(uint id, uint collateral) external;
    
    function withdraw(uint id, uint amount) external;
    
    function burn(uint id, uint amount) external;
    
    function mint(uint id, uint amount) external;
    
    function liquidate(uint id, address account, uint amount) external;
    
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.poison.finance/smart-contracts/potion-vault.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
