Documentation
¶
Index ¶
- func CalculationBitcoinSystemLendingRedeemAmount(feeAddr fields.Address, lendingMainAddr fields.Address, ...) (uint8, *fields.Amount, error)
- func CalculationDiamondSystemLendingRedeemAmount(feeAddr fields.Address, lendingMainAddr fields.Address, borrowPeriod int64, ...) (uint8, *fields.Amount, error)
- func CalculationOfInterestBitcoinMortgageLoanAmount(totalLendingPercentage float64) (float64, float64)
- func DoAppendCompoundInterest1Of10000By2500Height(amt1 *fields.Amount, amt2 *fields.Amount, insnum uint64) (*fields.Amount, *fields.Amount)
- func DoAppendCompoundInterestProportionOfHeightV2(amt1 *fields.Amount, amt2 *fields.Amount, caclnum uint64, wfzn uint64, ...) (*fields.Amount, *fields.Amount, error)
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.
Click to show internal directories.
Click to hide internal directories.