Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Jul 12, 2018
1 parent fab3703 commit c02d623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/renter/proto/renew.go
Expand Up @@ -28,8 +28,8 @@ func (cs *ContractSet) Renew(oldContract *SafeContract, params ContractParams, t
var basePrice, baseCollateral types.Currency
if endHeight+host.WindowSize > lastRev.NewWindowEnd {
timeExtension := uint64((endHeight + host.WindowSize) - lastRev.NewWindowEnd)
basePrice = host.StoragePrice.Mul64(lastRev.NewFileSize).Mul64(timeExtension) // cost of already uploaded data.
baseCollateral = host.Collateral.Mul64(lastRev.NewFileSize).Mul64(timeExtension) // collateral for already uploaded data.
basePrice = host.StoragePrice.Mul64(lastRev.NewFileSize).Mul64(timeExtension) // cost of already uploaded data that needs to be covered by the renewed contract.
baseCollateral = host.Collateral.Mul64(lastRev.NewFileSize).Mul64(timeExtension) // same as basePrice.
}

// Calculate the anticipated transaction fee.
Expand Down

0 comments on commit c02d623

Please sign in to comment.