Beanstalk
  • Agronomics Handbook
  • Farmers' Almanac
  • Whitepaper
  • Contract Addresses
  • 🌱Overview
    • Introduction
    • Development Ethos
    • EIP-2535 Diamond
    • App Storage
    • Internal Balances
  • 🌾Protocol
    • Overview
    • Louper
    • Sun
      • Season Facet
    • Silo
      • Silo Facet
      • BDV Facet
      • Whitelist Facet
      • Convert Facet
      • Convert Getters Facet
      • Enroot Facet
      • Approval Facet
      • Metadata Facet
      • Migration Facet
      • Legacy Claim Withdrawal Facet
    • Field
      • Field Facet
      • Fundraiser Facet
    • Barn
      • Fertilizer Facet
      • Unripe Facet
    • Market
      • Marketplace Facet
    • Farm
      • Farm Facet
      • Depot Facet
      • Token Facet
      • Token Support Facet
      • Curve Facet
    • Diamond
      • Diamond Cut Facet
      • Diamond Loupe Facet
      • Ownership Facet
      • Pause Facet
  • 📜Misc.
    • Technical Recordings
    • Upgrade History
    • FAQ
    • Terminology Discrepancies
Powered by GitBook
On this page
  • Call Functions
  • View Functions
  • Curve to BDV
  • Bean to BDV
  • Unripe LP to BDV
  • Unripe Bean to BDV
  • Well BDV
  • Events
Edit on GitHub
Export as PDF
  1. Protocol
  2. Silo

BDV Facet

PreviousSilo FacetNextWhitelist Facet

Last updated 6 months ago

Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.

The BDV Facet holds functions to get the BDV for each whitelisted Silo asset.

Call Functions

None.

View Functions

function curveToBDV(uint256 amount) public view returns (uint256);

Returns the BDV of a number of BEAN:3CRV LP tokens.

Parameter
Type
Description

amount

uint256

Number of tokens to get the BDV for.

Return Value
Description

uint256

The total BDV of amount number of BEAN:3CRV LP tokens.

function beanToBDV(uint256 amount) public pure returns (uint256);

Returns the BDV of a number of Beans (1 Bean = 1 BDV).

Parameter
Type
Description

amount

uint256

Number of tokens to get the BDV for.

Return Value
Description

uint256

The total BDV of amount number of Beans.

function unripeLPToBDV(uint256 amount) public view returns (uint256);

Returns the total BDV of a number of Unripe BEAN:3CRV LP tokens.

Parameter
Type
Description

amount

uint256

Number of tokens to get the BDV for.

Return Value
Description

uint256

The total BDV of amount number of Unripe BEAN:3CRV LP tokens.

function unripeBeanToBDV(uint256 amount) public view returns (uint256);

Returns the total BDV of a number of Unripe Beans.

Parameter
Type
Description

amount

uint256

Number of tokens to get the BDV for.

Return Value
Description

uint256

The total BDV of amount number of Unripe Beans.

function wellBdv(address token, uint256 amount)
    external
    view
    returns (uint256);

Returns the total BDV of a number of Well LP tokens given a Well LP token.

Parameter
Type
Description

token

address

The whitelisted token address.

amount

uint256

The number of tokens.

Return Value
Description

uint256

The total BDV of amount number of token.

Events

None.

🌾
Curve to BDV
Bean to BDV
Unripe LP to BDV
Unripe Bean to BDV
Well BDV