MCPcopy Create free account
hub / github.com/CodebuffAI/codebuff / enableMinimumAutoTopup

Function enableMinimumAutoTopup

web/src/app/payment-success/page.tsx:30–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 } = useAutoTopup()
29
30 const enableMinimumAutoTopup = async () => {
31 const { DEFAULT_THRESHOLD_CREDITS, DEFAULT_TOPUP_DOLLARS } =
32 AUTO_TOPUP_CONSTANTS
33
34 await handleToggleAutoTopup(true)
35 handleThresholdChange(DEFAULT_THRESHOLD_CREDITS)
36 handleTopUpAmountChange(DEFAULT_TOPUP_DOLLARS)
37 }
38
39 useEffect(() => {
40 if (success) {

Callers

nothing calls this directly

Calls 3

handleToggleAutoTopupFunction · 0.50
handleThresholdChangeFunction · 0.50
handleTopUpAmountChangeFunction · 0.50

Tested by

no test coverage detected