mirror of
https://github.com/luxfi/proto.git
synced 2026-10-30 15:21:09 +00:00
23 lines
462 B
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
|
|
}
|