Opium Pools v2 is a set of decentralized smart contracts that allow to pool together the funds for various actors in a trustless environment. Pooled funds can be used in any arbitrary strategy that fits into pools limitations.
Audited in July 2022 by Pessimistic (original)
Polygon
- Pools Lens Contract 0xB183Df5F877B35aA2290d15eb96D350845358431
The setup assumes that you have:
- Node.js ^14.5
- Yarn
Clone the project and install all dependencies:
$ git clone [email protected]:OpiumProtocol/opium-pools-v2.git
$ cd opium-pools-v2
# install project dependencies
$ yarn
You need to set the environment variable values. Unless you want to deploy the project on a network, the only important value here is Arbitrum network Archive Node RPC URL as it is used to run the tests on the arbitrum fork. Set the following variables on the .env
file on the root level of the repository:
touch .env
ARBITRUM_URL=https://eth-ropsten.alchemyapi.io/v2/<YOUR ALCHEMY KEY>
yarn compile
yarn test