Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.45 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.45 KB

Balancer V2 Lite

A 'Hello World' starter kit implementation of Balancer v2 Core; compile solidity from scratch and use typechain for testing; useful for core devs who wish to streamline their project to work directly with raw solidity and not rely on pre-compiled balancer v2 npm libraries

Basic usage include:

  • deploy vault
  • deploy test tokens
  • protocol fee provider
  • weighted & stable composable pool factory
  • initial token join
  • swapgivenin / swapgivenout

Overview

Installation

$ yarn                                # install dev dependencies
$ yarn build                          # compile solidity

Usage

Sample Weighted Pool with immutable weights

$ yarn test test/WeightedPoolTest.ts  # run basic weighted pool test template

Sample Composable Stable Pool with preminted BPT

$ yarn test test/StablePoolTest.ts   # run basic stable pool test template

Tutorials

Licensing

GNU General Public License Version 3 (GPL v3).