# Security & Risks

The overriding focus on safety and risk management is [what sets ACryptoS apart](https://medium.com/acryptos/what-sets-acryptos-apart-d6345e2f5d7f) from most DeFi projects.

In this section the major risks involved with investing funds in DeFi projects will be described along with the steps that ACryptoS have taken to mitigate these.

Note that the yield optimization strategies that ACryptoS employ mean that funds are staked on external projects, thus incurring 3rd party risks. Where applicable, these are also described below.

Be aware that investing in any DeFi project has risk. DeFi is relatively new and black swan events could occur that no-one has predicted. Only invest what you can afford to lose and always do your own research (DYOR) before committing funds to any project.

{% hint style="warning" %}
*The protocol is under continuous development, and some strategies and vaults are in beta. Please DYOR and use at your own risk.*
{% endhint %}

## Resources

Article - [What sets AcryptoS apart?](https://medium.com/acryptos/what-sets-acryptos-apart-d6345e2f5d7f) by dev Axe.ACryptoS

[List of Audits](#audits)

[Frequently Asked Questions](/tutorials-guides/faq.md)

### Deployed Smart Contracts Addresses

All deployed contracts have [verified and published source codes on BscScan](https://app.acryptos.com/contracts/).

***

## Risks & Mitigations

<details>

<summary>Risk: Malicious Developer Activity (e.g., rug pulling, exit scams, etc)</summary>

This is the risk that developers (or thieves who steal the development keys) could make changes in the code that would allow them to drain funds. This risk applies both to ACryptoS and to the projects that ACryptoS have created vaults for. The risk mitigation actions described below apply only to mitigating the risk of exploit or malicious dev activity to ACyptoS.

**Mitigation:**

**Removal of migrator function**

* The migrator function gives the owner of the Masterchef contract the ability to move all funds to another wallet, and thus steal user funds. This function has been removed from ACryptoS contracts

**48-hour timelock**

* This means that there is a 48-hour time period between when code changes are published and when they are deployed. Therefore, if a developer wanted to implement malicious code there would be a 48-hour delay before the code is deployed, thus allowing users time to withdraw their funds.

**Timelock monitor and community bot to monitor changes**

* There is a [timelock monitor](https://unrekt.net/acryptos/timelock.html) and Telegram [timelock monitor bot](https://t.me/acryptos9/59652) so that the community is aware of all upcoming changes and when they will be deployed.

</details>

<details>

<summary>Risk: Smart Contract Risks</summary>

This is the risk that flaws/bugs exist in smart contracts which can lead to a loss of funds either by accident or by malicious exploitation.

As ACryptoS interacts with other projects, there is smart contract risk both in the ACryptoS contracts and in all the contracts which ACryptoS interacts with.

**Mitigation:**

**Audits**

ACryptoS has been audited by some of the most respected blockchain/smart contract auditing companies.

No critical, medium or minor findings were raised during the audits. The only findings were informational. The details on the audits can be seen [here](#audits).

</details>

<details>

<summary>ACryptoS Dev Team Access</summary>

* ACryptoS Dev Team can control all assets in Vaults behind a 48 hour timelock.
* ACryptoS Dev Team can mint ACS token behind a 48 hour timelock.
* ACryptoS Dev Team can mint ACSI token behind a 48 hour timelock.
* ACryptoS Dev Team can control all reward parameters of ACS Farms behind a 6 hour timelock.
* ACryptoS Dev Team can control all reward parameters of ACSI Farms behind a 6 hour timelock.
* ACryptoS Dev Team can control all fee parameters of StableSwap behind a 72 hour timelock. ACryptoS Dev Team can control destination of StableSwap admin fees.
* ACryptoS Dev Team cannot control assets in Farms.
* ACryptoS Dev Team cannot control assets in StableSwap.

</details>

### Other Risks & Mitigations

<details>

<summary>Risk: Liquidation Risks</summary>

The risk of liquidation is a feature of trading with leverage. Liquidation is a mechanism in which market sell orders are created to exit leveraged positions when the margin requirements are not met.

**Mitigation:**

ACryptoS borrows and supplies the same asset so there is no liquidation risk from price. Our Supply-Borrow Leveraged Vaults rebalance on every deposit, withdrawal and harvest. More info on the strategy [here](/products/vaults/single-token-vaults.md).

</details>

<details>

<summary>Risk: Liquidity Risks</summary>

ACryptoS has created vaults which make use of selected lending protocols. With DeFi lending protocols there is the risk of insufficient liquidity meaning it may not be possible to withdrawal funds until liquidity increases. Low liquidity generally occurs when there is peak demand for an asset (such as for BNB during launchpad events). This is, in most cases, a temporary issue as the high borrowing costs will incentivize borrowers to repay and thus increase liquidity.

</details>

<details>

<summary>Risk: Impermanent Loss (IL) Risks</summary>

The risk of impermanent loss is present whenever you provide liquidity to a liquidity pool.

What is means is the (impermanent) loss of funds due to one of the assets in the pool being volatile in relation to the other.

This [article from Binance Academy](https://academy.binance.com/en/articles/impermanent-loss-explained) provides more details on IL

**Mitigation:**

To minimize the risk of IL you can choose to yield farm assets which have a high correlation (e.g., stable coin pairs) and avoid volatile pairs.

Note that the risk of IL is offset somewhat by the higher rewards offered for pairs that are more volatile. It is up to you as an investor to decide what strategy you are most comfortable with depending on your risk tolerance.

</details>

***

## Additional Notes on Risks & Safety

#### **Maturity of project**

ACryptoS is one of the longest running DeFi projects on Binance Smart Chain (launched in November 2020).

Furthermore, the smart contracts used in ACryptoS are forked from yearn.finance (Vault, Controller, Strategy), SushiSwap (MasterChef), Uniswap (Uni) and Curve (StableSwap). These are some of the biggest and most well-established projects in DeFi.

ACSI.finance is a direct implementation of Balancer V2 (BAL) as well.

#### **APRs/Returns**

APRs/returns shown on the UI include the performance and the workers fees, but **do not include** withdrawal fees, which will result in a negative return if you enter and exit a position quickly.

High returns/APRs almost certainly mean a high risk. The calculated APR/return depends on the underlying value of the token in the vault, the swap volume of the underlying pool and TVL of the vault, which can be very volatile.

## Audits

[**Hacken - Review**](https://github.com/acryptos/acryptos-protocol/blob/main/audits/20211116-Hacken-Review.pdf) **(16 Nov 2021)**\
[**Hacken - Acsi.Finance (Balancer V2)**](https://github.com/acryptos/acryptos-protocol/blob/main/audits/20211105-Hacken-AcsiFinance-BalancerV2.pdf) **(5 Nov 2021)**\
[**Hacken - Complete**](https://github.com/acryptos/acryptos-protocol/blob/main/audits/20210331-Hacken-Complete.pdf) **(31 Mar 2021)**\
[**Certik - CAKE Vault Strategy**](https://github.com/acryptos/acryptos-protocol/blob/main/audits/20210324-Certik-StrategyACryptoSCakeTokenTokenV2.pdf) **-** [**1**](https://www.certik.org/projects/acryptos) **(24 March 2021)**\
[**Hacken - ACryptoS Farm V2**](https://github.com/acryptos/acryptos-protocol/blob/main/audits/20210218-Hacken-ACryptoSFarmV2.pdf) **-** [**1**](https://hacken.io/wp-content/uploads/2021/02/20210218-Hacken-ACryptoSFarmV2.pdf) **(18 Feb 2021)**\
[**DefiYield.info**](https://github.com/acryptos/acryptos-protocol/blob/main/audits/20210128-defiyield.info.pdf) **-** [**1**](https://defiyield.info/assets/pdf/ACryptoS.pdf) **(28 Jan 2021)**

Smart contracts are forked from yearn.finance (Vault, Controller, Strategy), SushiSwap (MasterChef), Uniswap (Uni), Curve (StableSwap).


---

# 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.acryptos.com/dao/security-and-risks.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.
