Price Functions

Price Functions

getBoobsPriceInUSD(uint256 ethPriceFromUniswap)

Returns the price of BOOBS tokens in USD based on Uniswap prices.

  • Inputs:
    • ethPriceFromUniswap: ETH price in USD from Uniswap.
  • Outputs: uint256 (price of BOOBS in USD).

getBoobsPriceInETH()

Returns the current price of BOOBS tokens in ETH based on Uniswap reserves.

  • Inputs: None.
  • Outputs: uint256 (price of BOOBS in ETH).

getETHPriceFromUniswap()

Returns the current price of ETH in USD from Uniswap's ETH/USDC pool.

  • Inputs: None.
  • Outputs: uint256 (price of ETH in USD).

getETHPriceFromChainlink()

Returns the current price of ETH in USD from Chainlink's price feed.

  • Inputs: None.
  • Outputs: uint256 (price of ETH in USD).