Documentation
¶
Overview ¶
Package pay contains a forked version of the bank module. It only contains a modified message handler to support the payement of stability taxes.
Taxes are of the fomula: min(principal * taxRate, taxCap). TaxCap and taxRate are stored by the treasury module. Should transactions fail midway, taxes are still paid and non-refundable.
Index ¶
Constants ¶
View Source
const ( // LogKeyTax is to record treasury tax for a pay msg LogKeyTax = string("tax") )
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns a handler for "bank" type messages.
func RegisterCodec ¶ added in v0.2.0
Register concrete types on codec codec
Types ¶
Click to show internal directories.
Click to hide internal directories.