npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@arrakisfi/v2-core

v1.2.1

Published

Arrakis V2 Automated Market Maker

Downloads

33

Readme

V2 Core

Arrakis Vaults Version 2, Core Smart Contracts.

Read the full developer documentation

About

Arrakis V2 Core enables anyone to:

  • create an ArrakisV2 vault instance that manages holdings of a given token pair and issues ERC20 shares to depositor(s) of the token pair

  • dispatch and collect vault's token pair holdings to/from Uniswap V3 Liquidity Positions via a settable manager account (or smart contract)

  • configure and control important vault setup parameters (manager, pools, swap routers, mint restrictions) via the vault owner account (or smart contract)

ArrakisV2.sol

The ERC20 vault smart contract at the heart of this LP management system. A vault collects assets in a given token pair and delegates a manager smart contract to deploy vault capital in and out of an arbitrary collection of Uniswap V3 LP Positions for that token pair. Utilize the ERC20 tokenization of the position to aggregate liquidity from multiple shareholders, or create a "private" vault exclusively for a single depositor (see restrictedMint property).

ArrakisV2Factory.sol

The entry-point for deploying ArrakisV2 vault instances. Deploy vaults for any token pair and configure the owner, manager, and other initial parameters when calling deployVault

The Arrakis V2 Core contracts are thus neutral concentrated liquidity management infrastructure which anyone can deploy, configure and use freely- no added fees or haircut. Anyone can build "Active Liquidity Management" products on Arrakis V2 infrastructure for both private and public use-cases, and implement their own custom fee fee models and manager systems. While vaults don't have any hardcoded protocol fees, the manager role may still optionally set a fee parameter to take some proportion (or all) of the fees earned by the vault's Uniswap LP positions.

Setup

Create .env file and add ALCHEMY_ID (for all relevant environment variables, see .env.example)

Repo uses yarn for package management. Don't have yarn? see here

Test

install dependencies:

yarn

compile contracts:

yarn compile

run tests:

yarn test

Audits

Three security audits were performed on the smart contracts in this repository. The auditors were WatchPug, Statemind, and Sherlock and the comprehensive audit reports can be found in the audit/ directory.

Licensing

The primary license for Arrakis V2 Core is the Business Source License 1.1 (BUSL-1.1), see LICENSE. However, some files are dual licensed under MIT or GPL-2.0-or-later. The respective license of each smart contract is defined by its SPDX header.