Skip to content

gyrostable/gyro-pools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gyroscope Concentrated Liquidity Pools

Gyroscope concentrated liquidity pools based on Balancer V2. 2-CLPs and 3-CLPs.

For docs see: https://docs.gyro.finance/gyroscope-protocol/concentrated-liquidity-pools

Repo Setup

This project uses Brownie as its main testing framework but is also compatible with hardhat to be able to reuse some of the Balancer testing infrastructure if needed.

Dependencies

To install dependencies use

$ yarn

Compiling and testing

The project can be compiled and tested using

$ brownie compile
$ brownie test

Gas Testing

To analyze gas usage, the Tracer in tests/support/analyze_trace.py can be used in the following way:

from tests.support.trace_analyzer import Tracer

tx = ... # transaction to analyze

tracer = Tracer.load()
print(tracer.trace_tx(tx))

For this to work, you may need to install a version of brownie where a bug has been fixed:

$ pip