Beanstalk icon indicating copy to clipboard operation
Beanstalk copied to clipboard

Pipeline convert early review

Open pizzaman1337 opened this issue 10 months ago • 1 comments

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.

pizzaman1337 avatar Apr 18 '24 23:04 pizzaman1337

It would also be nice to add some reversion tests.

Brean0 avatar May 08 '24 19:05 Brean0