hypercerts-org / hypercerts-app

Lean, mean, minting machine
https://hypercert-app.vercel.app
0 stars 0 forks source link

Establish utils to denominate all currencies against ETH/USD #159

Open bitbeckers opened 1 month ago

bitbeckers commented 1 month ago

Deals can be denominated in USD (USDC/DAI) or ETH (ETH/wETH) and we should provide utilities for easy conversion:

Add these utilities to the (marketplace) SDK.

bitbeckers commented 3 weeks ago

Iirc these methods are in the API and maybe the app. They should be migrated to and exposed by the SDK. Based on the connected chain, query the appropriate chainlink price feed and return the outcome