MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getMinTopup

Function getMinTopup

controller/topup.go:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func getMinTopup() int64 {
68 minTopup := setting.MinTopUp
69 if !common.DisplayInCurrencyEnabled {
70 dMinTopup := decimal.NewFromInt(int64(minTopup))
71 dQuotaPerUnit := decimal.NewFromFloat(common.QuotaPerUnit)
72 minTopup = int(dMinTopup.Mul(dQuotaPerUnit).IntPart())
73 }
74 return int64(minTopup)
75}
76
77func RequestEpay(c *gin.Context) {
78 var req EpayRequest

Callers 2

RequestEpayFunction · 0.85
RequestAmountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected