Skip to content

draft/funding - #90

Draft
echobt wants to merge 1 commit into
mainfrom
lium-funding
Draft

draft/funding#90
echobt wants to merge 1 commit into
mainfrom
lium-funding

Conversation

@echobt

@echobt echobt commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Shared lium-funding crate: quote TAO (USD GPU cost × 1.10 buffer), deposit tracking, credit grant/consume-once, pluggable ChallengeFundingPolicy
  • Prism wiring: policy (metagraph + zero prior submissions), economics $0.67/h × 6h × 1.10, HTTP /v1/funding/{quote,status,admin/credits}, orchestrator rent gate behind PRISM_REQUIRE_LIUM_FUNDING (default off)
  • Design doc docs/LIUM_FUNDING.md + secrets placeholders under deploy/secrets/lium/do not enable require-funding or deploy until wallet/oracle/watcher are live

Test plan

  • cargo test -p lium-funding (quote math, eligibility, consume-once, flag off)
  • cargo clippy -p lium-funding -p prism-challenge -p prism-challenge-bin --all-targets -- -D warnings
  • cargo test -p prism-challenge (lib + integration)
  • xtask loc-cap / external-docs-check
  • Staging: real deposit SS58 + oracle + on-chain watcher before flipping PRISM_REQUIRE_LIUM_FUNDING=1

Add challenge-agnostic lium-funding (quote → deposit → credit → consume)
with Prism policy defaults and a feature-flagged orchestrator rent gate
(PRISM_REQUIRE_LIUM_FUNDING off by default) so prod is not bricked until
the operator wallet and oracle are live.
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 19dca08a-1c9d-4517-97ed-2310fd33530f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant