Interest

package
v0.0.0-...-29f768c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterestAdmin

type InterestAdmin struct {
	Cfg     *config.Config
	Account *goSdk.Account
	GenSdk  *goSdk.OntologySdk
}

func NewInterestAdmin

func NewInterestAdmin() *InterestAdmin

type InterestReader

type InterestReader struct {
	Cfg     *config.Config
	Account *goSdk.Account
	GenSdk  *goSdk.OntologySdk
}

func NewInterestReader

func NewInterestReader() *InterestReader

func (*InterestReader) BaseRatePerBlock

func (self *InterestReader) BaseRatePerBlock(contractAddrHex string)

func (*InterestReader) BorrowRate

func (self *InterestReader) BorrowRate(contractAddrHex string, cash, borrows, reserves big.Int)

func (*InterestReader) IsInterestRateModel

func (self *InterestReader) IsInterestRateModel(contractAddrHex string)

func (*InterestReader) MultiplierPerBlock

func (self *InterestReader) MultiplierPerBlock(contractAddrHex string)

func (*InterestReader) SendPreExecuteTx

func (self *InterestReader) SendPreExecuteTx(contractAddrHex, methodName string, params []interface{})

func (*InterestReader) SendTx

func (self *InterestReader) SendTx(contractAddrHex, methodName string, params []interface{})

func (*InterestReader) SupplyRate

func (self *InterestReader) SupplyRate(contractAddrHex string, cash, borrows, reserves, reservesFactor,
	insuranceFactor big.Int)

func (*InterestReader) UtilizationRate

func (self *InterestReader) UtilizationRate(contractAddrHex string, cash, borrows, reserves big.Int)

Jump to

Keyboard shortcuts

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