Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
name = "github.com/OpenBazaar/spvwallet"

[[constraint]]
branch = "ethereum-master"
branch = "master"
name = "github.com/OpenBazaar/wallet-interface"

[[constraint]]
Expand Down
11 changes: 7 additions & 4 deletions util/fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ type FeeProvider struct {
type FeeTargetInUSDCents float64

const (
EconomicTarget FeeTargetInUSDCents = 0.1
NormalTarget FeeTargetInUSDCents = 1
PriorityTarget FeeTargetInUSDCents = 5
SuperEconomicTarget FeeTargetInUSDCents = 0.02
EconomicTarget FeeTargetInUSDCents = 0.1
NormalTarget FeeTargetInUSDCents = 1
PriorityTarget FeeTargetInUSDCents = 5

AverageTransactionSize = 226
)
Expand All @@ -60,6 +61,8 @@ func (fp *FeeProvider) GetFeePerByte(feeLevel wallet.FeeLevel) uint64 {
return fp.normalFee
case wallet.ECONOMIC:
return fp.economicFee
case wallet.SUPER_ECONOMIC:
return fp.superEconomicFee
case wallet.FEE_BUMP:
return fp.priorityFee * 2
default:
Expand All @@ -84,7 +87,7 @@ func (fp *FeeProvider) GetFeePerByte(feeLevel wallet.FeeLevel) uint64 {
case wallet.ECONOMIC:
target = EconomicTarget
case wallet.SUPER_ECONOMIC:
return fp.superEconomicFee
target = SuperEconomicTarget
case wallet.FEE_BUMP:
target = PriorityTarget * 2
default:
Expand Down