File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ()) *
You can’t perform that action at this time.
0 commit comments