Files
proto/p/txs/fee/simple_calculator.go

23 lines
462 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package fee
import "github.com/luxfi/proto/p/txs"
var _ Calculator = (*SimpleCalculator)(nil)
type SimpleCalculator struct {
txFee uint64
}
func NewSimpleCalculator(fee uint64) *SimpleCalculator {
return &SimpleCalculator{
txFee: fee,
}
}
func (c *SimpleCalculator) CalculateFee(txs.UnsignedTx) (uint64, error) {
return c.txFee, nil
}