Skip to content

0xtekgrinder/autoswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoSwap

Description

AutoSwap is a DeFi protocol built on top of gnoswap that allows users to enter in a gnoswap's pool and automatically reposition their fund to stay in the active tick range of the pool.

This is called Automated Liquidity Management (ALM).

How it works

  1. Admin deploy a new vault with the desired pool by specifying token0, token1 and fee.
  2. User deposit token0 and token1 into the vault.
  3. Keeper will monitor the vault and reposition the fund to stay in the active tick range of the pool.
  4. User can claim the fees accrued by his position inside the vault at any time.
  5. User can withdraw their fund at any time.

Get Started

Realms

To tests the realms, you first need to clone the gnoswap repository and add it to the gno root directory in the examples folder with the corresponding path between /p and /r.

You also need to do the same for foo and bar located at realms/mock/foo and realms/mock/bar

Then you can run the following commands:

gno test ./realms

Frontend

To run the frontend, you first need pnpm installed. You can install it by running the following command:

npm install -g pnpm

And then you can run the following commands to install the dependencies:

cd frontend
pnpm install

Finaly, you can run the frontend by running the following command:

pnpm build
pnpm start

Or when you are developing, you can run the following command:

pnpm dev

About

ALM project on top of gnoswap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published