application-research / estuary

A custom IPFS/Filecoin node that makes it easy to pin IPFS content and make Filecoin deals.
https://docs.estuary.tech
Other
239 stars 66 forks source link

52 million dollar storage cost #783

Open snissn opened 1 year ago

snissn commented 1 year ago

Describe the bug @franklovefrank reported on slack:

image

To Reproduce unclear

Expected behavior something like this

image

Actual behavior endpoint https://api.estuary.tech/deals/estimate forgot how to math?

Additional context so far not reproducible

snissn commented 1 year ago

looks like this is reproducible and it's because the back end is returning AttoFil (like wei, 1 attofil = 10E-18 FIL)

so we need to convert via something like https://www.npmjs.com/package/@glif/filecoin-number