Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CodebuffAI/codebuff
/ creditsToFakeCost
Function
creditsToFakeCost
web/src/llm-api/opencode-zen.ts:810–812 ·
view source on GitHub ↗
(credits: number)
Source
from the content-addressed store, hash-verified
808
}
809
810
function
creditsToFakeCost(credits: number): number {
811
return
credits / ((1 + PROFIT_MARGIN) * 100)
812
}
Callers
2
handleOpenCodeZenNonStream
Function · 0.70
handleLine
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected