Implementation status
Contract
Complete in source and local tests
- Fixed six, nine, and twelve-month terms at 20%, 22.5%, and 25% LTV.
- Fixed 10% APY fee calculated and paid upfront in FUEL.
- Atomic USDC principal transfer when a loan opens.
- Partial and full principal repayment strictly before maturity.
- Proportional FUEL collateral release on each repayment.
- Terminal maturity with no grace period or post-maturity cure.
- Permissionless FUEL and USDC pool top-ups.
- Owner-only idle-fund withdrawals that cannot consume locked collateral.
- Transferable ownership with zero-address, self-transfer, former-owner, and unauthorized-caller protections.
- Owner-controlled price-oracle rotation with zero-address, unchanged-address, former-owner, and unauthorized-caller protections.
- Permissionless matured-loan finalization with status and maturity enforcement.
- Reusable, five-minute FUEL price attestations bound to domain, chain, and contract.
- Immutable original loan terms with separate mutable settlement/default accounting.
The release build is deployed on testnet. Its pools remain unfunded and the production application is not wired to it.
Test coverage
Sway unit tests
- Principal, interest, fee, default, and withdrawal math at minimum, middle, boundary, and maximum-safe values.
- Ceiling rounding for upfront fees.
- Strict repayment and delinquency time boundaries.
- Price-attestation age, domain, chain, contract, price, and timestamp binding.
- Supported and unsupported term behavior.
Local Fuel Core end-to-end tests
- Signed price-attested opening and atomic USDC transfer.
- Price freshness, tampering, invalid signer, and cross-contract replay resistance.
- Wrong assets, payments, terms, borrowers, amounts, and loan IDs.
- Partial/full repayment, rounding, maturity rejection, terminal default, and double-settlement protection.
- Twelve mixed loans across multiple borrowers, terms, repayment states, and defaults with exact aggregate accounting.
- Adversarial attempts against signatures, liquidity, collateral, repayments, and settlement.
- Permissionless funding by unrelated wallets with exact cumulative stats.
- Ownership transfer chains, unauthorized/zero/self transfers, former-owner authority loss, current-owner withdrawals, and oracle rotation.
- Old-oracle signature rejection and new-oracle signature acceptance after rotation.
- Premature, repeated, repaid-loan, longer-term-loan, and nonexistent-loan delinquency attempts.
- Role-separated deployer and price-oracle wallet storage, migration, local funding, configured deployment, and signing.
Current validated result: 13 project tests, 538 assertions, and 13 Sway unit tests.
Application
Available
- Fuel wallet connectivity and verified FUEL balance reads.
- Quote interface for fixed terms.
- Explicitly browser-only Burner loan simulation.
- Connected My Loans views, partial/full simulated repayments, history, reminders, and CSV export.
Pending before real borrowing
- Production price-oracle operations and monitoring.
- Real
open_loan, repayment, ownership, and pool transaction wiring. - Funded testnet FUEL/USDC pools and end-to-end testnet loan validation.
- Independent contract audit.
- Mainnet custody, ownership-transfer, monitoring, and emergency procedures.
- Explicit testnet and mainnet release approval.
Deployment gates
Local deployment is automated and tested. Testnet deployment is guarded by explicit confirmation and refuses to overwrite a recorded deployment. Mainnet remains intentionally disabled until every pending production requirement above is complete.