Skip to content

Build BalancerLib for spark #1434

@jubeira

Description

@jubeira

See https://github.com/sparkdotfi/spark-alm-controller/blob/dev/src/MainnetController.sol and e.g. https://github.com/sparkdotfi/spark-alm-controller/blob/dev/src/libraries/CurveLib.sol.

The ALM proxy holds the funds and can batch arbitrary calls as seen in CurveLib.

Our equivalent would be interacting with AggregatorRouter, settling debts first and then calling swap / add (or approve BPT and remove).

We have:

  • simple hop swaps
  • multi hop swaps (this category includes wrapping / unwrapping to trade through boosted pools using underlying tokens for example)
  • simple add / remove
  • boosted add / remove (i.e. add / remove to a boosted pool with underlying liquidity)

We can start working on simple and multi hop swaps using the current aggregator router (it will be refactored with #1424 and #1425, but the interface should be the same).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions