fees

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const OP_MINT = "mint"
View Source
const OP_RELEASE = "release"

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	Token  *schema.Token `json:"token"`
	Amount int64         `json:"amount" validate:"gt=0"`
}

Operation is a helper to apply fees

func (*Operation) ApplyFees

func (o *Operation) ApplyFees(fees *schema.BridgeFees, operation string) (int64, error)

Mint applies minting fees to input and updates output amount

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL