Skip to content

Add a function to the oracles to return the value of the base amount of tokens #204

Description

@SonOfMosiah

Either:

  • overload the calcValue function to return the price if no balance parameter is passed
  • create a new function called getPrice to return the same

Helpful for the frontend where we are currently passing 1 ether (or 1e6 for USDC) for the value in order to get the price.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions