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.
Either:
Helpful for the frontend where we are currently passing 1 ether (or 1e6 for USDC) for the value in order to get the
price.