Beanstalk
Beanstalk copied to clipboard
Pipeline convert early review
Adds the pipelineConvert
function, which takes in a series of pipe calls that must return the final amount of token left in pipeline after the trades execute. Includes the ability to add or remove BDV and grown stalk is penalized accordingly. A grown stalk penalty is applied for converts that increase deltaB away from peg. Includes a per-block convert power cap, preventing flashloan manipulation of the convert penalty by using the capped well reserves.
This is an early version up for internal code review to ensure things are generally looking good so far.
It would also be nice to add some reversion tests.