Skip to content

Commit 11b893f

Browse files
committed
Up price state
1 parent 528926c commit 11b893f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

admodels/state.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ type State interface {
88
Spend() billing.Money
99
TotalSpend() billing.Money
1010
TestSpend() billing.Money
11+
Imps() uint64
1112
Views() uint64
1213
Clicks() uint64
1314
Leads() uint64

price/calculator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ type priceCalculatorItem interface {
3535
Price(action adtype.Action) billing.Money
3636
}
3737

38-
// CalculateNewBidViewPrice returns new bid price for the target with system comission and with source corrections
38+
// CalculateNewBidPrice returns new bid price for the target with system comission and with source corrections
3939
//
4040
// Formula:
4141
//
42-
// NewBidViewPrice = Price + SourceCorrectionFactor[%] + TargetCorrectionFactor[%] + CommissionShareFactor[%]
42+
// NewBidPrice = Price + SourceCorrectionFactor[%] + TargetCorrectionFactor[%] + CommissionShareFactor[%]
4343
//
4444
//go:inline
45-
func CalculateNewBidViewPrice(price billing.Money, item priceCalculatorItem) billing.Money {
45+
func CalculateNewBidPrice(price billing.Money, item priceCalculatorItem) billing.Money {
4646
return billing.MoneyFloat(
4747
price.Float64() *
4848
(1. + item.CommissionShareFactor()) *

0 commit comments

Comments
 (0)