Skip to content

[Solidity Programming] Balancer v2 Lite for raw solidity development

License

Notifications You must be signed in to change notification settings

icmoore/balancer-v2-lite

Repository files navigation

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).

About

[Solidity Programming] Balancer v2 Lite for raw solidity development

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published