# Security

As a commitment towards the safety of our users and partners, we want to be transparent about the changes and the status of the security audits of our smart contracts.

GEM STOCKS was adapted from THENA, which was adapted from Velodrome codebase, which is directly derived from the Solidly smart contracts that have been open sourced in March 2022.

THENA has been completely audited by PeckShield on March 25, 2023:

{% embed url="<https://1042547200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrVMTR4m84s8h4qnBM5Cg%2Fuploads%2FYsZ8JsSmBjBuJ4zQRxuz%2FPeckShield-Audit-Report-Thena-v1.0.pdf?alt=media&token=c586d375-aa23-4ecc-b67a-9b3b98e450a1>" %}

The AMM part of Solidly has been audited by PeckShield that revealed 5 low-severity and 1 informal findings. There have been no security-related incidents involving Solidly smart contracts since their deployment on Fantom in February 2022.

{% embed url="<https://1042547200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrVMTR4m84s8h4qnBM5Cg%2Fuploads%2FHXuzidg6v90G35sYBmDQ%2FPeckShield-Audit-Report-Solidly-v1.0.pdf?alt=media&token=0ebd07c7-8b96-4fe3-b58b-d6f0bbec6df9>" %}

The Velodrome codebase underwent a security audit and a peer review as part of a Code4rena bug bounty contest. All high or medium-risk issues were resolved pre-deployment, except for one known issue (users can claim eligible rewards from ExternalBribe contracts more than once) that has been addressed via a wrapped contract solution.


---

# 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://gem-web3-vision.gitbook.io/wp/security.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.
