From token treasury to currency liquidity
A practical sequence for project teams, with human and agent responsibilities.
- 1Plan
Choose currency, collateral, owner and operation type.
- 2Read and review
Verify terms, funding, timing and source-block state.
- 3Review and authorize
On the approved USD testnet runtime, review a fresh static call and gas estimate, then confirm each exact transaction in MetaMask; other runtimes remain read-only.
- 4Reconcile and manage
Read confirmed debt, collateral, reserve, challenges and expiry.
1. Choose the operation, not just the collateral
- New proposal: configure all position terms, fund the irrevocable 1,000-local-unit opening fee and observe an initialization period of at least three days.
- Clone accepted terms: reuse a valid parent and its family terms without the opening fee. The caller funds collateral, while the child owner and child expiration are explicit inputs.
- Mint an existing position: do not create a position or pay another opening fee. Check caller rights, state, family capacity, backing and the current upfront fee.
These paths are not interchangeable. See proposal terms and borrowing quotes.
2. Prepare method-specific inputs
Record the currency instance and contract addresses, position owner, collateral funder and recipient. Keep collateral in its own raw decimals, local currency and fees in 18-decimal local raw units, rates in parts per million (ppm), and timestamps in seconds. A liquidation price has 36 − collateralDecimals decimals.
For a new proposal, the treasury needs the initial collateral, the hub allowance for that collateral and 1,000 local currency units for the opening fee. For a clone, the caller—not an assumed parent owner—must supply the initial collateral. An existing mint uses collateral already held by the position.
3. Read eligibility at an identified block
Confirm chain and contract identity before reading terms. For minting, check challengedAmount == 0, closed == false, now > cooldown, now < expiration, owner-or-roller caller rights, available family capacity and collateral backing. availableForMinting() alone does not establish eligibility.
Every quote or state view needs a block number and timestamp. Loading, failed, unknown and stale reads remain unavailable—not zero, false or eligible. The public imf.li release includes 12 independent DogeOS Chikyū V2 testnet registries; tUSDC is a test asset. Illustrative drafts are not live position state. Other builds may be unconfigured or synthetic, so always check the current registry and source-block reads.
4. Keep DEX liquidity separate
After minting, any DEX plan uses currency in the wallet plus additional project tokens that were never locked as collateral. Verify the DEX, pair, token addresses, price, fee tier, range, minimum outputs and LP controller separately. This frontend does not execute DEX transactions or certify a pool. It also does not introduce a circular-liquidity policy; participants must assess the liquidity and collateral relationship themselves.
5. Manage debt and time independently
Track gross debt, wallet repayment amount, currently assigned reserve, collateral, cooldown, challenges and expiration. Repayment can remain possible when withdrawal is blocked. Debt-free does not mean closed, and rolling a position is not automatic. Use the repayment and withdrawal guide and maturity and rolling guide.