Beanstalk icon indicating copy to clipboard operation
Beanstalk copied to clipboard

[INCLUDED IN GAUGE] Unripe λ → λ Conversions

Open nickkatsios opened this issue 2 years ago • 2 comments

Summary

Introduce the ability for users to convert unripe assets into their ripe counterpart.

Problem

Currently, the only way to redeem unripe assets is by withdrawing from the silo, and calling chop(). This creates an inefficiency in which users wanting to redeem early lose the opportunity cost associated with grown stalk. In light of the unripe seed rewards changing, allowing users to redeem their unripe assets without losing stalk allows farmers to weigh stalk growth vs higher redemption %.

Proposed Solution

  • Add new convert type in LibDataConvert :heavy_check_mark:

  • Modified LibConvert to include new convert type :heavy_check_mark:

  • Implemented LibChop and modified chop(...) and _getPenalizedUnderlying(...) to use LibChop :heavy_check_mark:

  • Implemented LibChopConvert with the convertUnripeBeansToBeans(...) and getBeanAmountOut(...) functions which wrap LibChop functions :heavy_check_mark:

  • Added tests to challenge the new convert functionallity. :heavy_check_mark:

nickkatsios avatar Sep 19 '23 10:09 nickkatsios

Deploy request for beanstalk-ui rejected.

Name Link
Latest commit e4a54739a69f640ff1228a8800a9b9e0fe74afb5

netlify[bot] avatar Sep 19 '23 10:09 netlify[bot]

Deploy request for basin rejected.

Name Link
Latest commit e4a54739a69f640ff1228a8800a9b9e0fe74afb5

netlify[bot] avatar Sep 19 '23 10:09 netlify[bot]