coinbase

package
v0.0.0-...-425d0f2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculationBitcoinSystemLendingRedeemAmount

func CalculationBitcoinSystemLendingRedeemAmount(
	feeAddr fields.Address, lendingMainAddr fields.Address,
	loanTotalAmount *fields.Amount, ransomBlockNumberBase uint64,
	lendingCreateBlockHeight uint64, penddingBlockHeight uint64,
) (uint8, *fields.Amount, error)

Calculate the amount of bitcoin redemption

func CalculationDiamondSystemLendingRedeemAmount

func CalculationDiamondSystemLendingRedeemAmount(
	feeAddr fields.Address, lendingMainAddr fields.Address,
	borrowPeriod int64, lendingCreateBlockHeight int64,
	loanTotalAmountMei int64,
	dslbpbn int64, penddingBlockHeight int64,
) (uint8, *fields.Amount, error)

Calculate the amount required for diamond redemption

func CalculationOfInterestBitcoinMortgageLoanAmount

func CalculationOfInterestBitcoinMortgageLoanAmount(totalLendingPercentage float64) (float64, float64)

Bitcoin mortgage loan: calculate the quantity that can be borrowed Totallendingpercentage total percentage lent, unit:% Return lendable quantity and prepaid interest

func DoAppendCompoundInterest1Of10000By2500Height

func DoAppendCompoundInterest1Of10000By2500Height(amt1 *fields.Amount, amt2 *fields.Amount, insnum uint64) (*fields.Amount, *fields.Amount)

Compound interest calculation of one ten thousandth of 2500 blocks

func DoAppendCompoundInterestProportionOfHeightV2

func DoAppendCompoundInterestProportionOfHeightV2(amt1 *fields.Amount, amt2 *fields.Amount, caclnum uint64, wfzn uint64, interestgiveto fields.VarUint1) (*fields.Amount, *fields.Amount, error)

Calculate channel interest reward (AMT1, AMT2, 1, 0.001) Uint64 overflow bug causes 1bjbnhwh Mgrns3f address balance calculation error

Types

This section is empty.

Jump to

Keyboard shortcuts

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