/ampl-balancer

Extension of Balancer labs' configurable rights pool (smart-pool).

Primary LanguageSolidityGNU General Public License v3.0GPL-3.0

Ampl Elastic Configuration Rights Pool

Build Status

Coverage Status

AmplElasticCRP.sol - Extension of Balancer labs' configurable rights pool (smart-pool).

When the Ampleforth protocol adjusts supply it expects market actors to propagate this information back into price. However, un-informed AMMs like Uniswap and Balancer do this automatically as they price assets by the relative pool balances. This lets arbitrageurs extract value from liqudity providers in these platforms.

We aim to create a Balancer smart pool which mitigates this problem by adjusting pool weights proportional to rebase. This ensures that the price of Amples in the smart-pool is unaffected by rebase induced supply adjustments.

The resyncWeight method is invoked atomically, just after rebase from Ampleforth's Orchestrator.

Getting started

# install dependencies
yarn install

# compile contracts
yarn compile

# run tests
yarn test