Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct storage price calculation #247

Merged
merged 2 commits into from
Jun 24, 2021
Merged

Conversation

hannahhoward
Copy link
Contributor

Goals

We're rejecting deals cause:

  • Miner ask in FIL/GB/Epoch
  • Actual price in deal is in FIL/Epoch for total piece size

We need to adjust price based on deal size

Implementation

This is cribbed from the interactive deal flow for Lotus.

  • Use API to get full piece size
  • Multiply minerAsk * deal piece size / 1GB = StoragePricePerEpoch
  • Add a test

@hannahhoward hannahhoward merged commit 9e03e50 into main Jun 24, 2021
@hannahhoward hannahhoward deleted the fix/storage-price-calculation branch June 24, 2021 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants