In API recommended fee, use minFeeUSD as min value

This commit is contained in:
Eduard S
2021-02-23 17:12:25 +01:00
parent 9d08ec6978
commit d16fba72a7
5 changed files with 31 additions and 5 deletions

View File

@@ -56,6 +56,12 @@ func (l2db *L2DB) DB() *sqlx.DB {
return l2db.db
}
// MinFeeUSD returns the minimum fee in USD that is required to accept txs into
// the pool
func (l2db *L2DB) MinFeeUSD() float64 {
return l2db.minFeeUSD
}
// AddAccountCreationAuth inserts an account creation authorization into the DB
func (l2db *L2DB) AddAccountCreationAuth(auth *common.AccountCreationAuth) error {
_, err := l2db.db.Exec(